Skip to content

Commit

Permalink
Fix: Error source in handler_querydata (#1111)
Browse files Browse the repository at this point in the history
  • Loading branch information
zoltanbedi authored Jan 16, 2025
1 parent b23e6ab commit 0c70380
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/pluginhost/handler_querydata.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func (ds *DataSource) QueryData(ctx context.Context, req *backend.QueryDataReque
span.RecordError(err)
logger.Error("error un-marshaling the query", "error", err.Error())
// Here we are using error source from the original error and if it does not have any source we are using the plugin error as the default source
errorRes := backend.ErrorResponseWithErrorSource(backend.PluginError(fmt.Errorf("%s: %w", "error un-marshaling the query", err)))
errorRes := backend.ErrorResponseWithErrorSource(fmt.Errorf("%s: %w", "error un-marshaling the query", err))
response.Responses[q.RefID] = errorRes
continue
}
Expand Down

0 comments on commit 0c70380

Please sign in to comment.