build(simulator): constants, requests and responses for reservation scenario added
[e-mobility-charging-stations-simulator.git] / src / charging-station / ChargingStation.ts
index 35d40ecec3bc14dba84bb1c2133eec747bff5a19..f47952ca9cf4b326c4a98121aec3f8d044f6ca82 100644 (file)
@@ -951,7 +951,7 @@ export class ChargingStation {
 
   private getStationInfoFromTemplate(): ChargingStationInfo {
     const stationTemplate: ChargingStationTemplate | undefined = this.getTemplateFromFile();
-    ChargingStationUtils.checkTemplateFile(stationTemplate, this.logPrefix(), this.templateFile);
+    ChargingStationUtils.checkTemplate(stationTemplate, this.logPrefix(), this.templateFile);
     ChargingStationUtils.warnTemplateKeysDeprecation(
       stationTemplate,
       this.logPrefix(),
@@ -1066,7 +1066,7 @@ export class ChargingStation {
 
   private initialize(): void {
     const stationTemplate = this.getTemplateFromFile();
-    ChargingStationUtils.checkTemplateFile(stationTemplate, this.logPrefix(), this.templateFile);
+    ChargingStationUtils.checkTemplate(stationTemplate, this.logPrefix(), this.templateFile);
     this.configurationFile = path.join(
       path.dirname(this.templateFile.replace('station-templates', 'configurations')),
       `${ChargingStationUtils.getHashId(this.index, stationTemplate)}.json`
@@ -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}`);
   }