mirror of
https://github.com/waku-org/nwaku.git
synced 2025-02-05 03:25:04 +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:
|
||||
ethRpc = await newWeb3(g.ethClientUrl)
|
||||
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
|
||||
let chainId = await ethRpc.provider.eth_chainId()
|
||||
|
Loading…
x
Reference in New Issue
Block a user