making sure that if AJAX request fails, then the whole operation is cancelled (previously the promise has been resolved successfully even in case of failed request)

pull/255/head
azivner 2017-12-18 22:56:44 +07:00
parent dc714f20c5
commit 35912f325b
1 changed files with 2 additions and 0 deletions

@ -82,6 +82,8 @@ const server = (function() {
return await $.ajax(options).catch(e => {
showError("Error when calling " + method + " " + url + ": " + e.status + " - " + e.statusText);
throw e;
});
}