Stringify error messages for Sentry

This commit is contained in:
Sebastian Serth
2020-03-05 13:03:47 +01:00
parent b63280ff97
commit 427ee3e2e7
3 changed files with 4 additions and 4 deletions

View File

@ -12,6 +12,6 @@ CodeOceanEditorAJAX = {
$.flash.danger({
text: message.length > 0 ? message : $('#flash').data('message-failure')
});
Sentry.captureException(response);
Sentry.captureException(JSON.stringify(response));
}
};

View File

@ -572,7 +572,7 @@ configureEditors: function () {
icon: ['fa', 'fa-bug'],
text: $('#run').data('message-failure')
});
Sentry.captureException(output);
Sentry.captureException(JSON.stringify(output));
}
},
@ -622,7 +622,7 @@ configureEditors: function () {
$.flash.danger({
text: $('#flash').data('message-failure')
});
Sentry.captureException(error);
Sentry.captureException(JSON.stringify(error));
},
showFileDialog: function(event) {

View File

@ -112,7 +112,7 @@ $(document).on('turbolinks:load', function() {
$.flash.danger({
text: $('#flash').data('message-failure')
});
Sentry.captureException(error);
Sentry.captureException(JSON.stringify(error));
};
var buildCheckboxes = function() {