From: Jérôme Benoit Date: Tue, 8 Mar 2022 15:47:30 +0000 (+0100) Subject: Do not throw inside a promise X-Git-Tag: v1.1.52~2 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=130376874def80e245ab76b8a0a5239464f26636;p=e-mobility-charging-stations-simulator.git Do not throw inside a promise Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/ocpp/OCPPRequestService.ts b/src/charging-station/ocpp/OCPPRequestService.ts index 745a96d4..c4dc0cbf 100644 --- a/src/charging-station/ocpp/OCPPRequestService.ts +++ b/src/charging-station/ocpp/OCPPRequestService.ts @@ -210,7 +210,6 @@ export default abstract class OCPPRequestService { resolve(payload); } catch (error) { reject(error); - throw error; } finally { self.chargingStation.requests.delete(messageId); }