From: Jérôme Benoit Date: Sat, 9 Mar 2024 20:57:14 +0000 (+0100) Subject: refactor(ui): refine error messages formatting X-Git-Tag: v1.3.0~8 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=08b552892290e9558a41c3a58589baa9957ca917;p=e-mobility-charging-stations-simulator.git refactor(ui): refine error messages formatting Signed-off-by: Jérôme Benoit --- diff --git a/ui/web/src/components/charging-stations/CSData.vue b/ui/web/src/components/charging-stations/CSData.vue index abc08762..48edd609 100644 --- a/ui/web/src/components/charging-stations/CSData.vue +++ b/ui/web/src/components/charging-stations/CSData.vue @@ -146,7 +146,7 @@ const startChargingStation = (): void => { }) .catch((error: Error) => { $toast.error('Error at starting charging station') - console.error('Error at starting charging station', error) + console.error('Error at starting charging station:', error) }) } const stopChargingStation = (): void => { @@ -157,7 +157,7 @@ const stopChargingStation = (): void => { }) .catch((error: Error) => { $toast.error('Error at stopping charging station') - console.error('Error at stopping charging station', error) + console.error('Error at stopping charging station:', error) }) } const openConnection = (): void => { @@ -168,7 +168,7 @@ const openConnection = (): void => { }) .catch((error: Error) => { $toast.error('Error at opening connection') - console.error('Error at opening connection', error) + console.error('Error at opening connection:', error) }) } const closeConnection = (): void => { @@ -179,7 +179,7 @@ const closeConnection = (): void => { }) .catch((error: Error) => { $toast.error('Error at closing connection') - console.error('Error at closing connection', error) + console.error('Error at closing connection:', error) }) } const deleteChargingStation = (): void => { @@ -190,7 +190,7 @@ const deleteChargingStation = (): void => { }) .catch((error: Error) => { $toast.error('Error at deleting charging station') - console.error('Error at deleting charging station', error) + console.error('Error at deleting charging station:', error) }) }