Add JavaScript sentry
This commit is contained in:
@ -565,6 +565,7 @@ configureEditors: function () {
|
||||
icon: ['fa', 'fa-bug'],
|
||||
text: $('#run').data('message-failure')
|
||||
});
|
||||
Sentry.captureException(output);
|
||||
}
|
||||
},
|
||||
|
||||
@ -606,7 +607,7 @@ configureEditors: function () {
|
||||
});
|
||||
},
|
||||
|
||||
showWebsocketError: function() {
|
||||
showWebsocketError: function(error) {
|
||||
if (window.navigator.userAgent.indexOf('Edge') > -1 || window.navigator.userAgent.indexOf('Trident') > -1) {
|
||||
// Mute errors in Microsoft Edge and Internet Explorer
|
||||
return;
|
||||
@ -614,6 +615,7 @@ configureEditors: function () {
|
||||
$.flash.danger({
|
||||
text: $('#flash').data('message-failure')
|
||||
});
|
||||
Sentry.captureException(error);
|
||||
},
|
||||
|
||||
showFileDialog: function(event) {
|
||||
|
Reference in New Issue
Block a user