diff --git a/app/assets/javascripts/editor/editor.js.erb b/app/assets/javascripts/editor/editor.js.erb index cc91fa96..09a828dc 100644 --- a/app/assets/javascripts/editor/editor.js.erb +++ b/app/assets/javascripts/editor/editor.js.erb @@ -215,8 +215,8 @@ var CodeOceanEditor = { // WebSocket errors are handled in `showWebsocketError` already. if (error.target instanceof WebSocket) return; - console.error(JSON.stringify(error)); - Sentry.captureException(JSON.stringify(error), {mechanism: {handled: false}}); + console.error(error); + Sentry.captureException(error, {mechanism: {handled: false, data: {error_json: JSON.stringify(error)}}}); } }); });