@marianmeres/http-utils 1.16.0 → 1.18.0
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.cjs +1 -0
- package/dist/index.js +1 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -370,6 +370,7 @@ const _fetch = async (params, respHeaders = null, errorMessageExtractor = null,
|
|
|
370
370
|
// try opinionated convention first
|
|
371
371
|
_body?.error?.message ||
|
|
372
372
|
_body?.message ||
|
|
373
|
+
_body?.error ||
|
|
373
374
|
_response?.statusText ||
|
|
374
375
|
'Unknown error';
|
|
375
376
|
if (msg.length > 255)
|
package/dist/index.js
CHANGED
|
@@ -368,6 +368,7 @@ const _fetch = async (params, respHeaders = null, errorMessageExtractor = null,
|
|
|
368
368
|
// try opinionated convention first
|
|
369
369
|
_body?.error?.message ||
|
|
370
370
|
_body?.message ||
|
|
371
|
+
_body?.error ||
|
|
371
372
|
_response?.statusText ||
|
|
372
373
|
'Unknown error';
|
|
373
374
|
if (msg.length > 255)
|