aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorbitpshr <mail@bitpshr.net>2018-06-01 20:50:46 +0800
committerbitpshr <mail@bitpshr.net>2018-06-02 00:57:57 +0800
commitccae937f412d9dbec509784a3ad3aa4d2911fdf0 (patch)
tree8486f3b68163635820ed224f9a90d844ecf29d2f /app
parentcc73d869fed79c63261821fb7ad8f1e5180ffca2 (diff)
downloadtangerine-wallet-browser-ccae937f412d9dbec509784a3ad3aa4d2911fdf0.tar
tangerine-wallet-browser-ccae937f412d9dbec509784a3ad3aa4d2911fdf0.tar.gz
tangerine-wallet-browser-ccae937f412d9dbec509784a3ad3aa4d2911fdf0.tar.bz2
tangerine-wallet-browser-ccae937f412d9dbec509784a3ad3aa4d2911fdf0.tar.lz
tangerine-wallet-browser-ccae937f412d9dbec509784a3ad3aa4d2911fdf0.tar.xz
tangerine-wallet-browser-ccae937f412d9dbec509784a3ad3aa4d2911fdf0.tar.zst
tangerine-wallet-browser-ccae937f412d9dbec509784a3ad3aa4d2911fdf0.zip
Properly end the middleware stack on RPC error
Diffstat (limited to 'app')
-rw-r--r--app/scripts/lib/createErrorMiddleware.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/scripts/lib/createErrorMiddleware.js b/app/scripts/lib/createErrorMiddleware.js
index baed99e45..c70beddfd 100644
--- a/app/scripts/lib/createErrorMiddleware.js
+++ b/app/scripts/lib/createErrorMiddleware.js
@@ -59,6 +59,7 @@ function createErrorMiddleware ({ override = true } = {}) {
if (!error) { return done() }
sanitizeRPCError(error)
log.error(`MetaMask - RPC Error: ${error.message}`, error)
+ done()
})
}
}