Handle raw number errors, I guess
This commit is contained in:
parent
6b63cfd491
commit
b65c8399d8
1 changed files with 2 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue