Handle raw number errors, I guess

This commit is contained in:
shamoon 2025-11-21 10:05:01 -08:00
parent 6b63cfd491
commit b65c8399d8
No known key found for this signature in database

View File

@ -14,6 +14,8 @@ export default function Error({ error }) {
if (typeof error === "string") {
error = { message: error }; // eslint-disable-line no-param-reassign
} else if (typeof error === "number") {
error = { message: `Error ${error}` }; // eslint-disable-line no-param-reassign
}
if (error?.data?.error) {