From 5213c04a4ca7036a29c4e38b97dff4d733515ced Mon Sep 17 00:00:00 2001 From: Zhiting Lin Date: Tue, 6 Feb 2018 11:18:38 +0800 Subject: [PATCH] handle error for transaction --- src/features/transactions/actions.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/features/transactions/actions.js b/src/features/transactions/actions.js index 805565d..3158831 100644 --- a/src/features/transactions/actions.js +++ b/src/features/transactions/actions.js @@ -93,7 +93,8 @@ form.submitForm = (formParams) => function(dispatch) { }).then(resp => { if (resp.status === 'fail') { // TODO: deal with failure - return + throw(resp.msg) + // return } dispatch(form.created()) -- 2.11.0