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)

This commit is contained in:
azivner 2017-12-18 22:56:44 -05:00
parent dc714f20c5
commit 35912f325b

View File

@ -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;
});
}