Skip to content

Commit 7f4bf5b

Browse files
committed
console.log on ajax error
1 parent bd143fe commit 7f4bf5b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

webroot/js/messages.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ $(document).ready(function () {
1717
'level': button.data('level'),
1818
'title': button.data('title'),
1919
'body': button.data('body')
20+
},
21+
error: function () {
22+
console.log(`failed to delete message ${JSON.stringify(button.data)}`);
2023
}
2124
});
2225
hideClearAllMessagesButtonIfAllMessagesAlreadyCleared();

0 commit comments

Comments
 (0)