diff --git a/server/monitor-types/system-service.js b/server/monitor-types/system-service.js index c799f7b4d..980fc6097 100644 --- a/server/monitor-types/system-service.js +++ b/server/monitor-types/system-service.js @@ -105,8 +105,7 @@ class SystemServiceMonitorType extends MonitorType { heartbeat.msg = `Service '${serviceName}' is running.`; resolve(); } else { - heartbeat.msg = `Service '${serviceName}' is ${output}.`; - reject(new Error(heartbeat.msg)); + reject(new Error(`Service '${serviceName}' is ${output}.`)); } }); });