diff --git a/src/realtime/websocket/utils/extract-note-id-from-request-url.ts b/src/realtime/websocket/utils/extract-note-id-from-request-url.ts index e6abe99c4..93bedb1d2 100644 --- a/src/realtime/websocket/utils/extract-note-id-from-request-url.ts +++ b/src/realtime/websocket/utils/extract-note-id-from-request-url.ts @@ -21,7 +21,7 @@ export function extractNoteIdFromRequestUrl(request: IncomingMessage): string { const url = new URL(request.url, 'https://example.org'); const noteId = url.searchParams.get('noteId'); if (noteId === null || noteId === '') { - throw new Error(`Path doesn't contain parameter noteId: ${request.url}`); + throw new Error("Path doesn't contain parameter noteId"); } else { return noteId; }