From dee0fec9e9521712d11f1f040ae1264c41badaba Mon Sep 17 00:00:00 2001 From: Fabio Berger Date: Thu, 7 Jun 2018 18:10:56 +0200 Subject: Revert to returning orderState on invalid order --- packages/order-utils/src/order_state_utils.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/order-utils/src/order_state_utils.ts b/packages/order-utils/src/order_state_utils.ts index 7636372f8..ef868e60f 100644 --- a/packages/order-utils/src/order_state_utils.ts +++ b/packages/order-utils/src/order_state_utils.ts @@ -69,7 +69,12 @@ export class OrderStateUtils { }; return orderState; } catch (err) { - throw err; + const orderState: OrderStateInvalid = { + isValid: false, + orderHash, + error: err.message, + }; + return orderState; } } public async getOrderRelevantStateAsync(signedOrder: SignedOrder): Promise { -- cgit v1.2.3