Update server/monitor-types/system-service.js
Co-authored-by: Frank Elsinga <frank@elsinga.de>
This commit is contained in:
parent
134877317c
commit
c09882b00a
@ -95,8 +95,7 @@ class SystemServiceMonitorType extends MonitorType {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (error || stderr) {
|
if (error || stderr) {
|
||||||
heartbeat.msg = output || `Service '${serviceName}' is not running/found.`;
|
reject(new Error(`Service '${serviceName}' is not running/found.`));
|
||||||
reject(new Error(heartbeat.msg));
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user