Convert errors captured with Sentry to JSON
This commit is contained in:

committed by
Sebastian Serth

parent
0b1cb3affa
commit
c5b774f752
@ -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}});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user