Skip to content

Commit a63301c

Browse files
committed
Add a formatting for socket connection error case.
1 parent 5242b0e commit a63301c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/features/home.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,11 +234,11 @@ export default function Home () {
234234
window.setTimeout((): void => scrollTo(SCROLL_BOTTOM_ID), 128);
235235
// Makes a log message.
236236
setLogs((oldLogs: string[]): string[] => [
237-
...oldLogs, `❌ ${{
237+
...oldLogs, `❌ ${JSON.stringify({
238238
message: (error as Error).message,
239239
cause: (error as Error).cause,
240240
name: (error as Error).name
241-
}}`
241+
}, null, 2)}`
242242
]);
243243
}
244244
}

0 commit comments

Comments
 (0)