We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0842cee commit c9cf9d0Copy full SHA for c9cf9d0
packages/smithy-client/src/exceptions.ts
@@ -49,7 +49,7 @@ export const decorateServiceException = <E extends ServiceException>(
49
.filter(([, v]) => v !== undefined)
50
.forEach(([k, v]) => {
51
// @ts-ignore assign unmodeled keys
52
- exception[k] = v;
+ exception[k] = exception[k] ?? v;
53
});
54
// load error message from possible locations
55
// @ts-expect-error message could exist in Message key.
0 commit comments