Cleanup MikroORM configuration code for performance storage
[e-mobility-charging-stations-simulator.git] / src / charging-station / ocpp / OCPPError.ts
index ed77d54c22fa3446677a96d2328ced2629d26c8f..9c6f825a6526a3f903c4b2a70e230b6fb2de3103 100644 (file)
@@ -13,7 +13,7 @@ export default class OCPPError extends Error {
     this.name = new.target.name;
     this.code = code ?? ErrorType.GENERIC_ERROR;
     this.message = message ?? '';
-    this.message = command ?? '';
+    this.command = command;
     this.details = details ?? {};
 
     Object.setPrototypeOf(this, new.target.prototype);