Skip to content

Commit e8158a6

Browse files
authored
fix(smithy-client): fix default error typo (#4092)
1 parent 675fef3 commit e8158a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/smithy-client/src/default-error-handler.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export const throwDefaultError = ({ output, parsedBody, exceptionCtor, errorCode
1212
const $metadata = deserializeMetadata(output);
1313
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
1414
const response = new exceptionCtor({
15-
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
15+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknownError",
1616
$fault: "client",
1717
$metadata,
1818
});

0 commit comments

Comments
 (0)