From 99f1b845d733a6c4473aa0e52ebe95baff9eb882 Mon Sep 17 00:00:00 2001 From: nick-delirium Date: Fri, 28 Apr 2023 16:18:14 +0200 Subject: [PATCH] fix(ui): fix screen rec error handling --- frontend/app/utils/screenRecorder.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/app/utils/screenRecorder.ts b/frontend/app/utils/screenRecorder.ts index f06aee508..3905d7b05 100644 --- a/frontend/app/utils/screenRecorder.ts +++ b/frontend/app/utils/screenRecorder.ts @@ -106,8 +106,8 @@ export async function screenRecorder(recName: string, sessionId: string, saveCb: } } } catch (e) { - console.error('OpenReplay:', e); toast.error('Screen recording is not permitted by your system and/or browser. Make sure to enable it in your browser as well as in your system settings.'); + throw new Error('OpenReplay recording: ' + e); } }