Update server/monitor-types/system-service.js

Co-authored-by: Frank Elsinga <frank@elsinga.de>
This commit is contained in:
iotux 2026-01-01 08:35:59 +01:00 committed by GitHub
parent 2dbd8aecf2
commit 6c93930d3e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -56,8 +56,7 @@ class SystemServiceMonitorType extends MonitorType {
}
if (error) {
heartbeat.msg = output || `Service '${serviceName}' is not running.`;
reject(new Error(heartbeat.msg));
reject(new Error(output || `Service '${serviceName}' is not running.`));
return;
}