From 132fd5db6ab838e3eaaa64caf1cc2786091d90f5 Mon Sep 17 00:00:00 2001 From: Adrian Falleiro Date: Tue, 28 Jan 2025 08:10:30 +1100 Subject: [PATCH] Passthrough source error as `cause` to `AwsWrapperError` constructor (#375) --- common/lib/utils/client_utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/lib/utils/client_utils.ts b/common/lib/utils/client_utils.ts index 10abedf8..0ad24a0f 100644 --- a/common/lib/utils/client_utils.ts +++ b/common/lib/utils/client_utils.ts @@ -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);