Bug 563868 - Provide better feedback when server is unreachable or doesn't have a server instance during setup. also fixes bug 564329. r=Mardak

This commit is contained in:
Mike Connor 2010-05-07 00:02:00 -04:00
parent b7c52221c4
commit ac56a121ac

View File

@ -757,8 +757,13 @@ WeaveSvc.prototype = {
let data = "";
try {
data = res.get();
if (data.status == 200 && data == "0")
return "available";
if (data.status == 200) {
if (data == "0")
return "available";
else if (data == "1")
return "notAvailable";
}
}
catch(ex) {}