mirror of
https://github.com/voideditor/void
synced 2026-05-24 09:58:23 +00:00
improve message
This commit is contained in:
parent
d21f2c4d62
commit
86c9a17f8d
1 changed files with 2 additions and 1 deletions
|
|
@ -34,7 +34,8 @@ const getErrorDetails = (error: unknown) => {
|
|||
}
|
||||
// sometimes error is an object but not an Error
|
||||
else if (typeof error === 'object') {
|
||||
e = new Error('More details below.', { cause: JSON.stringify(error) })
|
||||
e = new Error(`The server didn't give a very useful error message. More details below.`, { cause: JSON.stringify(error) })
|
||||
|
||||
}
|
||||
else {
|
||||
e = new Error(String(error))
|
||||
|
|
|
|||
Loading…
Reference in a new issue