X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=ui%2Fweb%2Fsrc%2Fcomposables%2FUIClient.ts;h=bbb4a4499b233a6aead4703eaf1b3de93004e32e;hb=975570b708efc2b28b8040ecf5cdb6eb45a1b55a;hp=a474c8db5e66619f6e6d753a9241acfdfa9ed781;hpb=474d4ffcd45d49bb242f51510a28569b00328676;p=e-mobility-charging-stations-simulator.git diff --git a/ui/web/src/composables/UIClient.ts b/ui/web/src/composables/UIClient.ts index a474c8db..bbb4a449 100644 --- a/ui/web/src/composables/UIClient.ts +++ b/ui/web/src/composables/UIClient.ts @@ -174,7 +174,7 @@ export class UIClient { const response = JSON.parse(messageEvent.data) as ProtocolResponse; if (Array.isArray(response) === false) { - throw new Error(`Response not an array: ${JSON.stringify(response, null, 2)}`); + throw new Error(`Response not an array: ${JSON.stringify(response, undefined, 2)}`); } const [uuid, responsePayload] = response; @@ -192,7 +192,7 @@ export class UIClient { } this.deleteResponseHandler(uuid); } else { - throw new Error(`Not a response to a request: ${JSON.stringify(response, null, 2)}`); + throw new Error(`Not a response to a request: ${JSON.stringify(response, undefined, 2)}`); } } }