group_manager.nim more except detail when cant connect eth client (#2195)

This commit is contained in:
Ivan FB 2023-11-20 23:25:55 +01:00 committed by GitHub
parent ef8ffbdbd0
commit 13fb7c2f74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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()