From: Jérôme Benoit Date: Mon, 23 May 2022 21:53:27 +0000 (+0200) Subject: Refine an error message X-Git-Tag: v1.1.61~31 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=baf93dda8596b6963f488577bd0d6060458cf4c5;p=e-mobility-charging-stations-simulator.git Refine an error message Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/ChargingStationUtils.ts b/src/charging-station/ChargingStationUtils.ts index 582912b0..c63a7f27 100644 --- a/src/charging-station/ChargingStationUtils.ts +++ b/src/charging-station/ChargingStationUtils.ts @@ -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)