mirror of
https://github.com/node-red/node-red
synced 2024-11-21 23:48:30 +00: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) {
|
||||
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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user