From 3255ae4187def1163e43db4e491648fd856ba9cb Mon Sep 17 00:00:00 2001 From: Nicholas O'Leary Date: Fri, 6 Sep 2013 21:03:51 +0100 Subject: [PATCH] Fixes #10 --- nodes/core/20-inject.html | 4 ++-- nodes/core/58-debug.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/nodes/core/20-inject.html b/nodes/core/20-inject.html index 4879f5eab..31506d78c 100644 --- a/nodes/core/20-inject.html +++ b/nodes/core/20-inject.html @@ -74,13 +74,13 @@ if (err.status == 404) { RED.notify("Error: inject node not deployed","error"); } else { - RED.notify("Error: "+err.response,"error"); + RED.notify("Error: no response from server","error"); } } else if (resp.status == 200) { RED.notify("Successfully injected: "+label,"success"); } else { if (resp) { - RED.notify("Error: "+resp,"error"); + RED.notify("Error: unexpected response:"+resp,"error"); } else { RED.notify("Error: no response from server","error"); } diff --git a/nodes/core/58-debug.html b/nodes/core/58-debug.html index 21bca9bea..34de8d223 100644 --- a/nodes/core/58-debug.html +++ b/nodes/core/58-debug.html @@ -81,7 +81,7 @@ RED.view.redraw(); } else { if (resp) { - RED.notify("Error: unexpected response : "+resp,"error"); + RED.notify("Error: unexpected response: "+resp,"error"); } else { RED.notify("Error: no response from server","error"); }