Cloudwatch: Change deprecated errorsource references (#97827)

This has been failing to compile, bringing down a _lot_ of tests along with it (notably the entire pkg/tests dir).
The `experimental/errorsource` package was deprecated, so the recommended replacement was used.
This commit is contained in:
Mariell Hoversholm
2024-12-12 11:37:11 +01:00
committed by GitHub
parent 5be8a9b3c3
commit 8f628a0695
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ func (e *cloudWatchExecutor) executeAnnotationQuery(ctx context.Context, pluginC
cli, err := e.getCWClient(ctx, pluginCtx, region)
if err != nil {
result = errorsource.AddDownstreamErrorToResponse(query.RefID, result, fmt.Errorf("%v: %w", "failed to get client", err))
result.Responses[query.RefID] = backend.ErrorResponseWithErrorSource(fmt.Errorf("%v: %w", "failed to get client", err))
return result, nil
}