Better error message for invalid recognizer