diff --git a/chain/types/message.go b/chain/types/message.go index 5b2aad47e..547d4c353 100644 --- a/chain/types/message.go +++ b/chain/types/message.go @@ -196,7 +196,7 @@ func (m *Message) ValidForBlockInclusion(minGas int64, version network.Version) } if m.GasLimit > build.BlockGasLimit { - return xerrors.New("'GasLimit' field cannot be greater than a block's gas limit") + return xerrors.Errorf("'GasLimit' field cannot be greater than a block's gas limit (%d > %d)", m.GasLimit, build.BlockGasLimit) } // since prices might vary with time, this is technically semantic validation