Skip to content

Commit

Permalink
Improve logging on general Ajax-errors
Browse files Browse the repository at this point in the history
  • Loading branch information
wiffbi committed Jan 17, 2024
1 parent abbf7bd commit 2f19b48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pretix/static/pretixcontrol/js/ui/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.'));
}
});
Expand Down

0 comments on commit 2f19b48

Please sign in to comment.