Do not throw inside a promise
authorJérôme Benoit <jerome.benoit@sap.com>
Tue, 8 Mar 2022 15:47:30 +0000 (16:47 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Tue, 8 Mar 2022 15:47:30 +0000 (16:47 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/charging-station/ocpp/OCPPRequestService.ts

index 745a96d4465a774ce0ef7a772cf4c8b541bae7ac..c4dc0cbf396fafc986ccf921712d125c6da7582b 100644 (file)
@@ -210,7 +210,6 @@ export default abstract class OCPPRequestService {
               resolve(payload);
             } catch (error) {
               reject(error);
-              throw error;
             } finally {
               self.chargingStation.requests.delete(messageId);
             }