From eff695837bfbbe39cc9627c8dfea215875c7edbe Mon Sep 17 00:00:00 2001 From: MiguelMLorente Date: Tue, 4 Feb 2025 23:34:23 +0100 Subject: [PATCH] Create websocket exception filter --- app/src/exceptions.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/exceptions.ts b/app/src/exceptions.ts index e845efd..0fb2095 100644 --- a/app/src/exceptions.ts +++ b/app/src/exceptions.ts @@ -21,6 +21,9 @@ export class PlayerNotFoundException extends WebSocketException { export class GameNotFoundException extends WebSocketException { constructor(gameId: string) { - super('Unable to find game from ID: ' + gameId, ErrorCode.GAME_NOT_FOUND); + super( + 'Unable to find game from ID: ' + gameId, + ErrorCode.GAME_NOT_FOUND, + ); } }