From d97091af5173a93e6a3e231eb23f8e446dc4198b Mon Sep 17 00:00:00 2001 From: Adam Stachowicz Date: Tue, 27 Jul 2021 20:02:20 +0200 Subject: [PATCH] Missing this --- server/notification.js | 2 +- server/ping-lite.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/server/notification.js b/server/notification.js index f4cd08af..f25ca80a 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 337bc0d3..0b9a7401 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")); }