1
0
mirror of https://github.com/louislam/uptime-kuma.git synced 2024-12-24 22:14:47 +02:00

Missing this

This commit is contained in:
Adam Stachowicz 2021-07-27 20:02:20 +02:00
parent 4c8fdd07d9
commit d97091af51
2 changed files with 2 additions and 1 deletions

View File

@ -309,8 +309,8 @@ class Notification {
if (! output.includes("ERROR")) {
return "Sent Successfully";
}
throw new Error(output)
throw new Error(output)
} else {
return ""
}

View File

@ -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"));
}