OSDN Git Service
(root)
/
bytom
/
bytom-electron.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d5155d
)
handle error for transaction
author
Zhiting Lin
<zlin035@uottawa.ca>
Tue, 6 Feb 2018 03:18:38 +0000
(11:18 +0800)
committer
Zhiting Lin
<zlin035@uottawa.ca>
Tue, 6 Feb 2018 03:18:38 +0000
(11:18 +0800)
src/features/transactions/actions.js
patch
|
blob
|
history
diff --git
a/src/features/transactions/actions.js
b/src/features/transactions/actions.js
index
805565d
..
3158831
100644
(file)
--- 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())