8000
tmp' :: IO () tmp' = do r <- runWeb3 foo case r of Left errr -> putStrLn "an error" Right a -> putStrLn "ok"
In the event of insufficient funds, the above will throw an uncaught exception:
*** Exception: CallException JSON-RPC error -32000: err: insufficient funds for transfer (supplied gas 4010499). Data: Nothing
This is using geth 1.9.24-stable on Ropsten:
geth --http --rpc --ropsten
@o1lo01ol1o Thank you for report Tim, expected behaviour is Left "error message" right?
Left "error message"
Yes, I would expect to see geth's error message.
Activity
akru commentedon May 4, 2021
@o1lo01ol1o Thank you for report Tim, expected behaviour is
Left "error message"right?o1lo01ol1o commentedon May 4, 2021
Yes, I would expect to see geth's error message.