Implement nicer error messages.