restart rpc on "Failed to connect to localhost/127.0.0.1:8545" (related to #607)
This commit is contained in:
parent
a38671e4d8
commit
afaef1db9c
|
@ -407,5 +407,7 @@
|
||||||
(u/side-effect!
|
(u/side-effect!
|
||||||
(fn [_ [_ error]]
|
(fn [_ [_ error]]
|
||||||
(.log js/console error)
|
(.log js/console error)
|
||||||
(when (re-find (re-pattern "Could not connect to the server.") (.-message error))
|
(let [message (.-message error)]
|
||||||
(status/restart-rpc)))))
|
(when (or (re-find (re-pattern "Could not connect to the server.") message)
|
||||||
|
(re-find (re-pattern "Failed to connect") message))
|
||||||
|
(status/restart-rpc))))))
|
||||||
|
|
Loading…
Reference in New Issue