@overmap-ai/core 1.0.23 → 1.0.24
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/overmap-core.js
CHANGED
|
@@ -3430,7 +3430,8 @@ async function performRequest(action, client) {
|
|
|
3430
3430
|
throw new APIError("You have been signed out due to inactivity.", originalError, { discard: true });
|
|
3431
3431
|
}
|
|
3432
3432
|
}
|
|
3433
|
-
const apiErrorMessage = ((_a2 = originalError.body) == null ? void 0 : _a2.error) ?? originalError.text;
|
|
3433
|
+
const apiErrorMessage = ((_a2 = originalError.body) == null ? void 0 : _a2.error) ?? originalError.text ?? originalError.error;
|
|
3434
|
+
console.log("API error message (best effort extraction):", apiErrorMessage);
|
|
3434
3435
|
throw new APIError(
|
|
3435
3436
|
typeof apiErrorMessage === "string" ? apiErrorMessage : (
|
|
3436
3437
|
// TODO: Error codes for all APIErrors.
|