Skip to content

Commit 132fd5d

Browse files
Passthrough source error as cause to AwsWrapperError constructor (#375)
1 parent d89025b commit 132fd5d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

common/lib/utils/client_utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export class ClientUtils {
4343
if (error instanceof InternalQueryTimeoutError) {
4444
throw error;
4545
}
46-
throw new AwsWrapperError(error);
46+
throw new AwsWrapperError(error.message, error);
4747
})
4848
.finally(() => {
4949
clearTimeout(timer.timeoutId);

0 commit comments

Comments
 (0)