Improve logging on general Ajax-errors

This commit is contained in:
Richard Schreiber
2024-01-17 09:43:08 +01:00
committed by GitHub
parent abbf7bdd69
commit 2f19b48f97

View File

@@ -105,7 +105,7 @@ $(document).ajaxError(function (event, jqXHR, settings, thrownError) {
} else if (c.length > 0) {
ajaxErrDialog.show(c.first().html());
} else if (thrownError !== "abort" && thrownError !== "") {
console.log(thrownError);
console.error(event, jqXHR, settings, thrownError);
alert(gettext('Unknown error.'));
}
});