diff --git a/server/monitor-types/system-service.js b/server/monitor-types/system-service.js index 980fc6097..227fa9438 100644 --- a/server/monitor-types/system-service.js +++ b/server/monitor-types/system-service.js @@ -95,8 +95,7 @@ class SystemServiceMonitorType extends MonitorType { } if (error || stderr) { - heartbeat.msg = output || `Service '${serviceName}' is not running/found.`; - reject(new Error(heartbeat.msg)); + reject(new Error(`Service '${serviceName}' is not running/found.`)); return; }