some more data on errors

This commit is contained in:
Hannes Mannerheim 2016-03-20 22:32:36 +01:00
parent 7018d0979d
commit c45a40dea3
2 changed files with 3 additions and 2 deletions

View File

@ -184,7 +184,9 @@ function getFromAPI(stream, actionOnSuccess) {
actionOnSuccess(data, userArray, request, url);
},
error: function(data) {
error: function(data, textStatus, errorThrown) {
data.textStatus = textStatus;
data.errorThrown = errorThrown;
actionOnSuccess(false, false, data, url);
remove_spinner();
}

View File

@ -999,7 +999,6 @@ function setNewCurrentStream(streamObject,setLocation,fallbackId,actionOnSuccess
showErrorMessage(window.sL.ERRORsomethingWentWrong + '<br><br>\
url: ' + url + '<br><br>\
jQuery ajax() error:<pre><code>' + replaceHtmlSpecialChars(JSON.stringify(error, null, ' ')) + '</code></pre>\
streamObject:<pre><code>' + replaceHtmlSpecialChars(JSON.stringify(streamObject, null, ' ')) + '</code></pre>\
');
}