@overmap-ai/core 1.0.65-error-message-fix.2 → 1.0.65-error-message-fix.3
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
|
@@ -241,9 +241,9 @@ function extractErrorMessage(errorRes, err) {
|
|
|
241
241
|
} else if (typeof responseBody.message === "string") {
|
|
242
242
|
console.debug("body.message is string", responseBody.message);
|
|
243
243
|
ret = responseBody.message;
|
|
244
|
-
} else
|
|
244
|
+
} else {
|
|
245
245
|
try {
|
|
246
|
-
ret = Object.entries(responseBody
|
|
246
|
+
ret = Object.entries(responseBody).map(([key, value]) => {
|
|
247
247
|
if (typeof value === "string") {
|
|
248
248
|
if (_SPECIAL_KEYS.includes(key))
|
|
249
249
|
return value;
|