Refine an error message
authorJérôme Benoit <jerome.benoit@sap.com>
Mon, 23 May 2022 21:53:27 +0000 (23:53 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Mon, 23 May 2022 21:53:27 +0000 (23:53 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/charging-station/ChargingStationUtils.ts

index 582912b0d6a937097bef372150e0d7b212639051..c63a7f27e67411558c7f6f42b3be66859e2fecfa 100644 (file)
@@ -287,7 +287,9 @@ export class ChargingStationUtils {
     stationInfoDst: ChargingStationInfo = {} as ChargingStationInfo
   ) {
     if (!stationInfoSrc || !stationTemplate) {
-      throw new BaseError('Missing charging station template or info to propagate serial number');
+      throw new BaseError(
+        'Missing charging station template or existing configuration to propagate serial number'
+      );
     }
     stationTemplate?.chargePointSerialNumberPrefix && stationInfoSrc?.chargePointSerialNumber
       ? (stationInfoDst.chargePointSerialNumber = stationInfoSrc.chargePointSerialNumber)