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 7d2182f commit 39ac131Copy full SHA for 39ac131
packages/smithy-client/src/exceptions.ts
@@ -50,7 +50,7 @@ export const decorateServiceException = <E extends ServiceException>(
50
.filter(([, v]) => v !== undefined)
51
.forEach(([k, v]) => {
52
// @ts-ignore assign unmodeled keys
53
- exception[k] = v;
+ exception[k] = exception[k] ?? v;
54
});
55
// load error message from possible locations
56
// @ts-expect-error message could exist in Message key.
0 commit comments