refactor: remove unneeded registration status getter
[e-mobility-charging-stations-simulator.git] / src / charging-station / ocpp / OCPPRequestService.ts
index 2c90e1a374df1bcc6ee5bf88a2f3f53a4ffa4bec..b9a75e5f943388b33b07be80e1654e47acf6cb3c 100644 (file)
@@ -478,7 +478,7 @@ export abstract class OCPPRequestService {
     }
     throw new OCPPError(
       ErrorType.SECURITY_ERROR,
-      `Cannot send command ${commandName} PDU 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?.bootNotificationResponse?.status} state on the central server`,
       commandName,
     );
   }