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

more debug info on BlockGasLimitReached exception log #5514

Merged
merged 1 commit into from
Mar 13, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions libweb3jsonrpc/Eth.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -739,10 +739,12 @@ string dev::rpc::exceptionToErrorMessage()
{
ret = "Transaction gas amount is less than the intrinsic gas amount for this transaction type.";
}
catch (BlockGasLimitReached const&)
{
ret = "Block gas limit reached.";
}
catch (BlockGasLimitReached const& _ex)
{
string errorString = "Block gas limit reached! ";
cwarn << errorString + _ex.what();
ret = errorString;
}
catch (InvalidNonce const&)
{
ret = "Invalid transaction nonce.";
Expand Down