We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e99cf41 commit e1b14cbCopy full SHA for e1b14cb
1 file changed
src/templates/base.html
@@ -93,6 +93,18 @@
93
dsn: "https://2e878ab38ea0468f870435702d667330@o1194684.ingest.sentry.io/6317549",
94
environment: "{{ environment }}",
95
});
96
+ $(document).ajaxError(function(event, jqXHR, ajaxSettings, thrownError) {
97
+ Sentry.captureMessage(thrownError || jqXHR.statusText, {
98
+ extra: {
99
+ type: ajaxSettings.type,
100
+ url: ajaxSettings.url,
101
+ data: ajaxSettings.data,
102
+ status: jqXHR.status,
103
+ error: thrownError || jqXHR.statusText,
104
+ response: jqXHR.responseText.substring(0, 100),
105
+ },
106
+ });
107
108
/* BootstrapDialog settings */
109
BootstrapDialog.DEFAULT_TEXTS['OK'] = '確定';
110
BootstrapDialog.DEFAULT_TEXTS['CANCEL'] = '取消';
0 commit comments