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

Commit 720afcf

Browse files
author
Dimitry
committed
more debug info on BlockGasLimitReached exception log
1 parent 594f141 commit 720afcf

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

libweb3jsonrpc/Eth.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -739,10 +739,12 @@ 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+
string errorString = "Block gas limit reached! ";
745+
cwarn << errorString + _ex.what();
746+
ret = errorString;
747+
}
746748
catch (InvalidNonce const&)
747749
{
748750
ret = "Invalid transaction nonce.";

0 commit comments

Comments
 (0)