Skip to content

Commit

Permalink
fix(smithy-client): fix default error typo (#4092)
Browse files Browse the repository at this point in the history
  • Loading branch information
syall committed Oct 25, 2022
1 parent 675fef3 commit e8158a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/smithy-client/src/default-error-handler.ts
Expand Up @@ -12,7 +12,7 @@ export const throwDefaultError = ({ output, parsedBody, exceptionCtor, errorCode
const $metadata = deserializeMetadata(output);
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
const response = new exceptionCtor({
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknownError",
$fault: "client",
$metadata,
});
Expand Down

0 comments on commit e8158a6

Please sign in to comment.