Stringify error messages for Sentry
This commit is contained in:
@ -12,6 +12,6 @@ CodeOceanEditorAJAX = {
|
|||||||
$.flash.danger({
|
$.flash.danger({
|
||||||
text: message.length > 0 ? message : $('#flash').data('message-failure')
|
text: message.length > 0 ? message : $('#flash').data('message-failure')
|
||||||
});
|
});
|
||||||
Sentry.captureException(response);
|
Sentry.captureException(JSON.stringify(response));
|
||||||
}
|
}
|
||||||
};
|
};
|
@ -572,7 +572,7 @@ configureEditors: function () {
|
|||||||
icon: ['fa', 'fa-bug'],
|
icon: ['fa', 'fa-bug'],
|
||||||
text: $('#run').data('message-failure')
|
text: $('#run').data('message-failure')
|
||||||
});
|
});
|
||||||
Sentry.captureException(output);
|
Sentry.captureException(JSON.stringify(output));
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -622,7 +622,7 @@ configureEditors: function () {
|
|||||||
$.flash.danger({
|
$.flash.danger({
|
||||||
text: $('#flash').data('message-failure')
|
text: $('#flash').data('message-failure')
|
||||||
});
|
});
|
||||||
Sentry.captureException(error);
|
Sentry.captureException(JSON.stringify(error));
|
||||||
},
|
},
|
||||||
|
|
||||||
showFileDialog: function(event) {
|
showFileDialog: function(event) {
|
||||||
|
@ -112,7 +112,7 @@ $(document).on('turbolinks:load', function() {
|
|||||||
$.flash.danger({
|
$.flash.danger({
|
||||||
text: $('#flash').data('message-failure')
|
text: $('#flash').data('message-failure')
|
||||||
});
|
});
|
||||||
Sentry.captureException(error);
|
Sentry.captureException(JSON.stringify(error));
|
||||||
};
|
};
|
||||||
|
|
||||||
var buildCheckboxes = function() {
|
var buildCheckboxes = function() {
|
||||||
|
Reference in New Issue
Block a user