diff options
author | bitpshr <mail@bitpshr.net> | 2018-06-01 20:50:46 +0800 |
---|---|---|
committer | bitpshr <mail@bitpshr.net> | 2018-06-02 00:57:57 +0800 |
commit | ccae937f412d9dbec509784a3ad3aa4d2911fdf0 (patch) | |
tree | 8486f3b68163635820ed224f9a90d844ecf29d2f /app | |
parent | cc73d869fed79c63261821fb7ad8f1e5180ffca2 (diff) | |
download | tangerine-wallet-browser-ccae937f412d9dbec509784a3ad3aa4d2911fdf0.tar.gz 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.js | 1 |
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() }) } } |