misc: display unknown error and http status code for unknown errors (#41228)

This commit is contained in:
Frédéric Péters 2020-04-02 10:59:03 +02:00
parent a7abc6e3aa
commit d86bfe5966
1 changed files with 1 additions and 0 deletions

View File

@ -29,6 +29,7 @@ function combo_load_cell(elem) {
},
error: function(error) {
var msg = $(elem).data('ajax-cell-error-message');
if (!msg) msg = 'Unknown error (code: ' + error.status + ')';
$elem
.find('.loading')
.addClass('error-loading')