Nicer error message when docs are bad