mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
More useful response to 404... (if backend died)
This commit is contained in:
parent
28b7009f33
commit
b8f82fd9ae
@ -67,7 +67,7 @@
|
|||||||
if (err.status == 404) {
|
if (err.status == 404) {
|
||||||
RED.notify("<strong>Error</strong>: debug node not deployed","error");
|
RED.notify("<strong>Error</strong>: debug node not deployed","error");
|
||||||
} else {
|
} else {
|
||||||
RED.notify("<strong>Error</strong>: "+err.response,"error");
|
RED.notify("<strong>Error</strong>: no response from server","error");
|
||||||
}
|
}
|
||||||
} else if (resp.status == 200) {
|
} else if (resp.status == 200) {
|
||||||
RED.notify("Successfully activated: "+label,"success");
|
RED.notify("Successfully activated: "+label,"success");
|
||||||
@ -81,7 +81,7 @@
|
|||||||
RED.view.redraw();
|
RED.view.redraw();
|
||||||
} else {
|
} else {
|
||||||
if (resp) {
|
if (resp) {
|
||||||
RED.notify("<strong>Error</strong>: "+resp,"error");
|
RED.notify("<strong>Error</strong>: unexpected response : "+resp,"error");
|
||||||
} else {
|
} else {
|
||||||
RED.notify("<strong>Error</strong>: no response from server","error");
|
RED.notify("<strong>Error</strong>: no response from server","error");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user