mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
Fixes bug #518
onError() now checks if the error message is empty and warn the user that the server is not reachable.
This commit is contained in:
parent
ec31ba2b51
commit
2d2bc3ad14
@ -233,6 +233,11 @@ function onError(request,error_json) {
|
||||
if (error_json.error.http_status=="401") {
|
||||
window.location.href = "/login";
|
||||
};
|
||||
|
||||
if (!message){
|
||||
notifyError("Cannot contact server: is Sunstone server running and reachable?");
|
||||
return false;
|
||||
}
|
||||
|
||||
//Parse known errors:
|
||||
var action_error = /^\[(\w+)\] Error trying to (\w+) (\w+) \[(\w+)\].*Reason: (.*)\.$/;
|
||||
|
Loading…
x
Reference in New Issue
Block a user