Skip to content

Commit

Permalink
Fix query error message to not include internal function name. Closes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
pskrbasu authored Aug 13, 2024
1 parent 6b9ad71 commit cb313fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/query/queryexecute/execute.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func executeQueries(ctx context.Context, initData *query.InitData) int {
// if executeQuery fails it returns err, else it returns the number of rows that returned errors while execution
if err, failures = executeQuery(ctx, initData.Client, q); err != nil {
failures++
error_helpers.ShowWarning(fmt.Sprintf("executeQueries: query %d of %d failed: %v", i+1, len(initData.Queries), error_helpers.DecodePgError(err)))
error_helpers.ShowWarning(fmt.Sprintf("query %d of %d failed: %v", i+1, len(initData.Queries), error_helpers.DecodePgError(err)))
// if timing flag is enabled, show the time taken for the query to fail
if cmdconfig.Viper().GetString(constants.ArgTiming) != constants.ArgOff {
display.DisplayErrorTiming(t)
Expand Down

0 comments on commit cb313fb

Please sign in to comment.