diff --git a/src/context/connect.tsx b/src/context/connect.tsx index 3d2459bd..2b2dc808 100644 --- a/src/context/connect.tsx +++ b/src/context/connect.tsx @@ -61,10 +61,10 @@ export const ConnectProvider = (props: { children: JSX.Element }) => { if (response.ok && response.headers.get('content-type') === EventStreamContentType) { setConnected(true) } else if (response.status === 401) { - throw new Error('cannot connect to real-time updates') + throw new Error('SSE: cannot connect to real-time updates') } else { setRetried((r) => r + 1) - throw new Error(`failed to connect ${retried()} times`) + throw new Error(`SSE: failed to connect ${retried()} times`) } }, onclose() {