mirror of
https://github.com/waku-org/nwaku.git
synced 2025-02-10 14:06:38 +00:00
group_manager.nim more except detail when cant connect eth client (#2195)
This commit is contained in:
parent
ef8ffbdbd0
commit
13fb7c2f74
@ -403,7 +403,8 @@ method init*(g: OnchainGroupManager): Future[void] {.async.} =
|
|||||||
try:
|
try:
|
||||||
ethRpc = await newWeb3(g.ethClientUrl)
|
ethRpc = await newWeb3(g.ethClientUrl)
|
||||||
except CatchableError:
|
except CatchableError:
|
||||||
raise newException(ValueError, "could not connect to the Ethereum client")
|
let errMsg = "could not connect to the Ethereum client: " & getCurrentExceptionMsg()
|
||||||
|
raise newException(ValueError, errMsg)
|
||||||
|
|
||||||
# Set the chain id
|
# Set the chain id
|
||||||
let chainId = await ethRpc.provider.eth_chainId()
|
let chainId = await ethRpc.provider.eth_chainId()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user