Skip to content

Commit

Permalink
Passthrough source error as cause to AwsWrapperError constructor (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianfalleiro authored Jan 27, 2025
1 parent d89025b commit 132fd5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/lib/utils/client_utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export class ClientUtils {
if (error instanceof InternalQueryTimeoutError) {
throw error;
}
throw new AwsWrapperError(error);
throw new AwsWrapperError(error.message, error);
})
.finally(() => {
clearTimeout(timer.timeoutId);
Expand Down

0 comments on commit 132fd5d

Please sign in to comment.