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:
7411f18
)
report update alias error
author
Yongfeng LI
<wliyongfeng@gmail.com>
Wed, 18 Apr 2018 03:04:12 +0000
(11:04 +0800)
committer
Yongfeng LI
<wliyongfeng@gmail.com>
Wed, 18 Apr 2018 03:04:12 +0000
(11:04 +0800)
src/features/shared/actions/update.js
patch
|
blob
|
history
diff --git
a/src/features/shared/actions/update.js
b/src/features/shared/actions/update.js
index
2df6198
..
13861bb
100644
(file)
--- a/
src/features/shared/actions/update.js
+++ b/
src/features/shared/actions/update.js
@@
-15,6
+15,9
@@
export default function(type, options = {}) {
id: id,
alias: data.alias,
}).then((resp) => {
+ if (resp.status === 'fail') {
+ throw new Error(resp.msg)
+ }
dispatch(updated(resp))
dispatch(push({