From e95804ef5613f9e7296badf2e073b1bec649d05f Mon Sep 17 00:00:00 2001 From: Marks Polakovs Date: Wed, 12 May 2021 20:36:54 +0100 Subject: [PATCH] Don't use errors for things that are really not errors --- src/broadcast/rtc_streamer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/broadcast/rtc_streamer.ts b/src/broadcast/rtc_streamer.ts index 46d0184..98773db 100644 --- a/src/broadcast/rtc_streamer.ts +++ b/src/broadcast/rtc_streamer.ts @@ -44,7 +44,7 @@ export class WebRTCStreamer extends Streamer { } async stop(reason?: string): Promise { - Sentry.captureException(new Error(`Connection STOP due to ${reason}`)); + Sentry.captureMessage(`Connection STOP due to ${reason}`); if (this.ws) { this.ws.close(); this.ws = null as any;