Convert errors captured with Sentry to JSON

This commit is contained in:
Sebastian Serth
2024-05-24 20:23:08 +02:00
committed by Sebastian Serth
parent 0b1cb3affa
commit c5b774f752

View File

@ -215,8 +215,8 @@ var CodeOceanEditor = {
try { try {
return await callback(); return await callback();
} catch (error) { } catch (error) {
console.error(error); console.error(JSON.stringify(error));
Sentry.captureException(error, {mechanism: {handled: false}}); Sentry.captureException(JSON.stringify(error), {mechanism: {handled: false}});
} }
}); });
}); });