build(deps): apply updates
[e-mobility-charging-stations-simulator.git] / src / exception / OCPPError.ts
index 3b23cc3b0d0c18a650a203042810750bd1e89b22..c5d25ddc23d402070437d511dce6a3ea11156bc3 100644 (file)
@@ -7,6 +7,7 @@ import {
   type JsonType,
   type RequestCommand,
 } from '../types';
+import { Constants } from '../utils';
 
 export class OCPPError extends BaseError {
   code: ErrorType;
@@ -23,6 +24,6 @@ export class OCPPError extends BaseError {
 
     this.code = code ?? ErrorType.GENERIC_ERROR;
     this.command = command;
-    this.details = details ?? {};
+    this.details = details ?? Constants.EMPTY_FREEZED_OBJECT;
   }
 }