some more data on errors
This commit is contained in:
parent
7018d0979d
commit
c45a40dea3
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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>\
|
||||
');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user