Skip to content
This repository was archived by the owner on Oct 28, 2021. It is now read-only.

Commit 700c832

Browse files
author
Dimitry
committed
more debug info on BlockGasLimitReached exception log
1 parent 05e6030 commit 700c832

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

libweb3jsonrpc/Eth.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -739,10 +739,10 @@ string dev::rpc::exceptionToErrorMessage()
739739
{
740740
ret = "Transaction gas amount is less than the intrinsic gas amount for this transaction type.";
741741
}
742-
catch (BlockGasLimitReached const&)
743-
{
744-
ret = "Block gas limit reached.";
745-
}
742+
catch (BlockGasLimitReached const& _ex)
743+
{
744+
ret = string("Block gas limit reached: ") + _ex.what();
745+
}
746746
catch (InvalidNonce const&)
747747
{
748748
ret = "Invalid transaction nonce.";

0 commit comments

Comments
 (0)