Skip to content

Commit

Permalink
More clear error
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalyisaev2 committed Nov 20, 2024
1 parent 9b60bf3 commit e3c330f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ func NewAPIErrorFromStdError(err error, kind api_common.EDataSourceKind) *api_se
case api_common.EDataSourceKind_LOGGING:
apiError = newAPIErrorFromYdbError(err)

Check warning on line 332 in common/errors.go

View check run for this annotation

Codecov / codecov/patch

common/errors.go#L331-L332

Added lines #L331 - L332 were not covered by tests
default:
panic(api_common.EDataSourceKind_name[int32(kind)])
panic(fmt.Sprintf("Unexpected data source kind: %v", api_common.EDataSourceKind_name[int32(kind)]))

Check warning on line 334 in common/errors.go

View check run for this annotation

Codecov / codecov/patch

common/errors.go#L334

Added line #L334 was not covered by tests
}

if apiError != nil {
Expand Down

0 comments on commit e3c330f

Please sign in to comment.