Tweak exception message assertion.