mirror of
https://github.com/pretix/pretix.git
synced 2026-05-09 15:54:03 +00:00
Improve logging on general Ajax-errors
This commit is contained in:
committed by
GitHub
parent
abbf7bdd69
commit
2f19b48f97
@@ -105,7 +105,7 @@ $(document).ajaxError(function (event, jqXHR, settings, thrownError) {
|
|||||||
} else if (c.length > 0) {
|
} else if (c.length > 0) {
|
||||||
ajaxErrDialog.show(c.first().html());
|
ajaxErrDialog.show(c.first().html());
|
||||||
} else if (thrownError !== "abort" && thrownError !== "") {
|
} else if (thrownError !== "abort" && thrownError !== "") {
|
||||||
console.log(thrownError);
|
console.error(event, jqXHR, settings, thrownError);
|
||||||
alert(gettext('Unknown error.'));
|
alert(gettext('Unknown error.'));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user