@azure/ai-text-analytics 5.2.0-alpha.20211214.2 → 5.2.0-alpha.20211215.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist-esm/src/util.js +3 -0
- package/dist-esm/src/util.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4140,6 +4140,9 @@ function appendReadableErrorMessage(currentMessage, innerMessage) {
|
|
|
4140
4140
|
function compileError(errorResponse) {
|
|
4141
4141
|
var _a;
|
|
4142
4142
|
const castErrorResponse = errorResponse;
|
|
4143
|
+
if (!castErrorResponse.response) {
|
|
4144
|
+
throw errorResponse;
|
|
4145
|
+
}
|
|
4143
4146
|
const topLevelError = (_a = castErrorResponse.response.parsedBody) === null || _a === void 0 ? void 0 : _a.error;
|
|
4144
4147
|
if (!topLevelError)
|
|
4145
4148
|
return errorResponse;
|