refactor: improve error log messages
authorJérôme Benoit <jerome.benoit@sap.com>
Tue, 23 May 2023 08:35:49 +0000 (10:35 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Tue, 23 May 2023 08:35:49 +0000 (10:35 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/charging-station/ChargingStation.ts

index 35d40ecec3bc14dba84bb1c2133eec747bff5a19..311df3fd90453058a4dd4505f3eee6d25135dc49 100644 (file)
@@ -2180,7 +2180,7 @@ export class ChargingStation {
     if (Utils.isNotEmptyString(configuredSupervisionUrl)) {
       return new URL(configuredSupervisionUrl);
     }
-    const errorMsg = 'No supervision url configured';
+    const errorMsg = 'No supervision url(s) configured';
     logger.error(`${this.logPrefix()} ${errorMsg}`);
     throw new BaseError(`${errorMsg}`);
   }