@globalbrain/sefirot 4.48.0 → 4.48.1
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/lib/composables/Error.ts +2 -2
- package/package.json +1 -1
package/lib/composables/Error.ts
CHANGED
|
@@ -216,8 +216,8 @@ export function useErrorHandler({
|
|
|
216
216
|
}
|
|
217
217
|
|
|
218
218
|
const statusCode = getHttpStatusCode(e)
|
|
219
|
-
if (!statusCode || statusCode
|
|
220
|
-
//
|
|
219
|
+
if (!statusCode || statusCode <= 400 || statusCode >= 500) {
|
|
220
|
+
// ^ report 400 too because it might be caused by a bug in the frontend code
|
|
221
221
|
|
|
222
222
|
const $ = instance && instance.$
|
|
223
223
|
const metadata = $ && {
|