diff --git a/src/sunstone/public/js/sunstone.js b/src/sunstone/public/js/sunstone.js index 7b7ac0778e..1635d27861 100644 --- a/src/sunstone/public/js/sunstone.js +++ b/src/sunstone/public/js/sunstone.js @@ -502,7 +502,8 @@ function setLogin(){ OpenNebula.Auth.logout({ success: function(){ window.location.href = "login"; - } + }, + error: onError }); return false;