Add JavaScript sentry

This commit is contained in:
Sebastian Serth
2020-03-05 10:30:57 +01:00
parent f2c45b2488
commit 74d99df070
10 changed files with 93 additions and 105 deletions

View File

@ -108,10 +108,11 @@ $(document).on('turbolinks:load', function() {
}
}
var ajaxError = function() {
var ajaxError = function(error) {
$.flash.danger({
text: $('#flash').data('message-failure')
});
Sentry.captureException(error);
};
var buildCheckboxes = function() {