X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=ui%2Fweb%2Fsrc%2Fcomposables%2FUIClient.ts;h=e78836fd51b7b18cdefa36b3f73c5a94e76ca191;hb=44eb6026079c8dc2c77b10a96a42d0c0b2da7c8f;hp=cf9894009d8844b5f4879d44d899404052f0db1a;hpb=ebbfbf1c01e010d051956867484b74a94237f546;p=e-mobility-charging-stations-simulator.git diff --git a/ui/web/src/composables/UIClient.ts b/ui/web/src/composables/UIClient.ts index cf989400..e78836fd 100644 --- a/ui/web/src/composables/UIClient.ts +++ b/ui/web/src/composables/UIClient.ts @@ -170,7 +170,7 @@ export default 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, null, 2)}`); } const [uuid, responsePayload] = response; @@ -188,7 +188,7 @@ export default 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, null, 2)}`); } } }