Skip to main content

Yes

function throwErr() public {
require(err == true, "0");
}

if false, 0 will be displayed as the error message.