I've got Solidity v0.4.24

And I'm doing this:

require(false,"this is a test");

When I run truffle test I get the revert, but I cant see the error message.

Any ideas what could be wrong?

1 Answer 1


You can't currently use web3 to inspect error messages thrown from revert. In the future it may be possible though, so adding these to your smart contract helps to future proof against this development.

You can follow the discussion at:

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.