@overmap-ai/core 1.0.65-error-message-fix.0 → 1.0.65-error-message-fix.2
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.
|
@@ -221,6 +221,7 @@ var __publicField = (obj, key, value) => {
|
|
|
221
221
|
let ret;
|
|
222
222
|
if (errorRes == null ? void 0 : errorRes.body) {
|
|
223
223
|
if (typeof errorRes.body === "object") {
|
|
224
|
+
console.debug("error body is object", errorRes.body);
|
|
224
225
|
const responseBody = errorRes.body;
|
|
225
226
|
if (typeof responseBody.error === "string") {
|
|
226
227
|
console.debug("body.error is string", responseBody.error);
|
|
@@ -253,8 +254,10 @@ var __publicField = (obj, key, value) => {
|
|
|
253
254
|
ret = errorRes.body;
|
|
254
255
|
}
|
|
255
256
|
} else if (errorRes == null ? void 0 : errorRes.text) {
|
|
257
|
+
console.debug("error.text", errorRes.text);
|
|
256
258
|
ret = errorRes.text;
|
|
257
259
|
} else if (err instanceof Error) {
|
|
260
|
+
console.debug("instance of Error", err.message);
|
|
258
261
|
ret = err.message;
|
|
259
262
|
}
|
|
260
263
|
if (!ret || ret.length > MAX_ERROR_MESSAGE_LENGTH) {
|