More useful response to 404... (if backend died)

This commit is contained in:
Dave Conway-Jones 2013-09-06 20:03:15 +01:00
parent 28b7009f33
commit b8f82fd9ae

View File

@ -67,7 +67,7 @@
if (err.status == 404) {
RED.notify("<strong>Error</strong>: debug node not deployed","error");
} else {
RED.notify("<strong>Error</strong>: "+err.response,"error");
RED.notify("<strong>Error</strong>: no response from server","error");
}
} else if (resp.status == 200) {
RED.notify("Successfully activated: "+label,"success");
@ -81,7 +81,7 @@
RED.view.redraw();
} else {
if (resp) {
RED.notify("<strong>Error</strong>: "+resp,"error");
RED.notify("<strong>Error</strong>: unexpected response : "+resp,"error");
} else {
RED.notify("<strong>Error</strong>: no response from server","error");
}