Skip to content

Commit

Permalink
Add error log to onDisconnect
Browse files Browse the repository at this point in the history
Signed-off-by: Thilo Aschebrock <[email protected]>
  • Loading branch information
ThiloAschebrock committed Sep 15, 2023
1 parent b8763b2 commit 6394e4b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/ondisconnect/src/on-disconnect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export const onDisconnect = async (config: ConfigWithHandler) => {
try {
await removeConnection(config);
} catch (err) {
console.error('Failed to disconnect: ' + JSON.stringify(err));
return { statusCode: 500, body: 'Failed to disconnect: ' + JSON.stringify(err) };
}

Expand Down

0 comments on commit 6394e4b

Please sign in to comment.