Incoming requests payload validation with JSON schemas (#135)
[e-mobility-charging-stations-simulator.git] / src / charging-station / ocpp / OCPPRequestService.ts
index 6695fcbc010e451a85740966da781f8fee392165..9bf06e935d04c41f95e12ba30b1ad2d8fb7ffa25 100644 (file)
@@ -19,6 +19,8 @@ import Utils from '../../utils/Utils';
 import type ChargingStation from '../ChargingStation';
 import type OCPPResponseService from './OCPPResponseService';
 
+const moduleName = 'OCPPRequestService';
+
 export default abstract class OCPPRequestService {
   private static instance: OCPPRequestService | null = null;
 
@@ -253,7 +255,7 @@ export default abstract class OCPPRequestService {
     }
     throw new OCPPError(
       ErrorType.SECURITY_ERROR,
-      `Cannot send command ${commandName} payload when the charging station is in ${chargingStation.getRegistrationStatus()} state on the central server`,
+      `Cannot send command ${commandName} PDU when the charging station is in ${chargingStation.getRegistrationStatus()} state on the central server`,
       commandName
     );
   }