OSDN Git Service

merge dashboard into electron
[bytom/bytom-electron.git] / src / sdk / connection.js
index d0dca98..f5ef2d2 100644 (file)
@@ -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)