OSDN Git Service
(root)
/
bytom
/
bytom-electron.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
merge dashboard into electron
[bytom/bytom-electron.git]
/
src
/
sdk
/
connection.js
diff --git
a/src/sdk/connection.js
b/src/sdk/connection.js
index
d0dca98
..
f5ef2d2
100644
(file)
--- a/
src/sdk/connection.js
+++ b/
src/sdk/connection.js
@@
-165,6
+165,9
@@
class Connection {
}
)
}).then((body) => {
+ if(body.status === 'fail'){
+ throw body
+ }
// After processing the response, convert snakecased field names to
// camelcase to match language conventions.
return skipSnakeize? body : camelize(body)