Skip to content

Commit c5b774f

Browse files
committed
Convert errors captured with Sentry to JSON
1 parent 0b1cb3a commit c5b774f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/assets/javascripts/editor/editor.js.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,8 @@ var CodeOceanEditor = {
215215
try {
216216
return await callback();
217217
} catch (error) {
218-
console.error(error);
219-
Sentry.captureException(error, {mechanism: {handled: false}});
218+
console.error(JSON.stringify(error));
219+
Sentry.captureException(JSON.stringify(error), {mechanism: {handled: false}});
220220
}
221221
});
222222
});

0 commit comments

Comments
 (0)