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