@aws-sdk/core
Advanced tools
@@ -74,5 +74,5 @@ import { NormalizedSchema, TypeRegistry } from "@smithy/core/schema"; | ||
| ...error.Error, | ||
| Type: error.Error.Type, | ||
| Code: error.Error.Code, | ||
| Message: error.Error.message ?? error.Error.Message ?? msg, | ||
| Type: error.Error?.Type, | ||
| Code: error.Error?.Code, | ||
| Message: error.Error?.message ?? error.Error?.Message ?? msg, | ||
| }; | ||
@@ -79,0 +79,0 @@ const reqId = error.$metadata.requestId; |
@@ -90,3 +90,3 @@ import { collectBody, RpcProtocol } from "@smithy/core/protocols"; | ||
| const errorIdentifier = this.loadQueryErrorCode(response, dataObject) ?? "Unknown"; | ||
| const errorData = this.loadQueryError(dataObject); | ||
| const errorData = this.loadQueryError(dataObject) ?? {}; | ||
| const message = this.loadQueryErrorMessage(dataObject); | ||
@@ -93,0 +93,0 @@ errorData.message = message; |
+1
-1
| { | ||
| "name": "@aws-sdk/core", | ||
| "version": "3.973.11", | ||
| "version": "3.973.12", | ||
| "description": "Core functions & classes shared by multiple AWS SDK clients.", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
363820
0.01%