mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-12 14:16:04 -05:00
Fix Catcher crash on wrong kind of errors
This commit is contained in:
@@ -135,7 +135,7 @@ export function Catcher() {
|
||||
<pre>
|
||||
Session ID: {getSessionId()}
|
||||
{error.data
|
||||
? `\n${JSON.stringify(JSON.parse(error.data), null, 2)}`
|
||||
? `\n${typeof error.data === "string" ? error.data : JSON.stringify(error.data, null, 2)}`
|
||||
: null}
|
||||
</pre>
|
||||
</Main>
|
||||
|
||||
Reference in New Issue
Block a user