From baf93dda8596b6963f488577bd0d6060458cf4c5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Mon, 23 May 2022 23:53:27 +0200 Subject: [PATCH] Refine an error message MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/charging-station/ChargingStationUtils.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- 2.34.1