@overmap-ai/core 1.0.22 → 1.0.23
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.
|
@@ -3418,7 +3418,7 @@ var __publicField = (obj, key, value) => {
|
|
|
3418
3418
|
throw new APIError("You have been signed out due to inactivity.", originalError, { discard: true });
|
|
3419
3419
|
}
|
|
3420
3420
|
}
|
|
3421
|
-
const apiErrorMessage = (_a2 = originalError.body) == null ? void 0 : _a2.error;
|
|
3421
|
+
const apiErrorMessage = ((_a2 = originalError.body) == null ? void 0 : _a2.error) ?? originalError.text;
|
|
3422
3422
|
throw new APIError(
|
|
3423
3423
|
typeof apiErrorMessage === "string" ? apiErrorMessage : (
|
|
3424
3424
|
// TODO: Error codes for all APIErrors.
|