From c5b774f7527763f3a0bf66a6d70c78599ce651e1 Mon Sep 17 00:00:00 2001 From: Sebastian Serth Date: Fri, 24 May 2024 20:23:08 +0200 Subject: [PATCH] Convert errors captured with Sentry to JSON --- app/assets/javascripts/editor/editor.js.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/editor/editor.js.erb b/app/assets/javascripts/editor/editor.js.erb index 4734e3e6..3a9d1083 100644 --- a/app/assets/javascripts/editor/editor.js.erb +++ b/app/assets/javascripts/editor/editor.js.erb @@ -215,8 +215,8 @@ var CodeOceanEditor = { try { return await callback(); } catch (error) { - console.error(error); - Sentry.captureException(error, {mechanism: {handled: false}}); + console.error(JSON.stringify(error)); + Sentry.captureException(JSON.stringify(error), {mechanism: {handled: false}}); } }); });