fix backend script error reporting, closes #3033

This commit is contained in:
zadam
2022-08-02 18:15:54 +02:00
parent 8acd3851b0
commit 23c06ebed8
2 changed files with 8 additions and 3 deletions

View File

@@ -131,10 +131,10 @@ function ajax(url, method, data, headers) {
headers: respHeaders
});
},
error: async (jqXhr, status, error) => {
await reportError(method, url, status, error);
error: async (jqXhr, status) => {
await reportError(method, url, status, jqXhr.responseText);
rej(error);
rej(jqXhr.responseText);
}
};