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