diff --git a/server/notification.js b/server/notification.js index f4cd08af9..f25ca80a7 100644 --- a/server/notification.js +++ b/server/notification.js @@ -309,8 +309,8 @@ class Notification { if (! output.includes("ERROR")) { return "Sent Successfully"; } - throw new Error(output) + throw new Error(output) } else { return "" } diff --git a/server/ping-lite.js b/server/ping-lite.js index 337bc0d3d..0b9a7401a 100644 --- a/server/ping-lite.js +++ b/server/ping-lite.js @@ -97,6 +97,7 @@ Ping.prototype.send = function(callback) { if (stderr) { return callback(new Error(stderr)); } + if (!stdout) { return callback(new Error("No stdout detected")); }