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}}); } }); });