mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-06 19:47:02 +03:00
only show message on real error
This commit is contained in:
@@ -656,8 +656,10 @@ function checkStatus(){
|
||||
}
|
||||
blockAjax = false;
|
||||
})
|
||||
.fail(function() {
|
||||
showMessage('Could not get status.json!', 'ERROR');
|
||||
.fail(function(xhr, ajaxOptions, thrownError) {
|
||||
console.log(xhr.status);
|
||||
console.log(thrownError);
|
||||
if (thrownError != '') showMessage(thrownError, 'ERROR');
|
||||
blockAjax = false;
|
||||
});
|
||||
}
|
||||
@@ -701,9 +703,11 @@ function getConfig() {
|
||||
"</tr>"
|
||||
);
|
||||
})
|
||||
.fail(function() {
|
||||
showMessage('Could not get config.json!', 'ERROR');
|
||||
console.log("failed to fetch config!");
|
||||
.fail(function(xhr, ajaxOptions, thrownError) {
|
||||
console.log(xhr.status);
|
||||
console.log(thrownError);
|
||||
if (thrownError != '') showMessage(thrownError, 'ERROR');
|
||||
blockAjax = false;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user