Perhaps the lesson was "read the error message; if it doesn't help then take that as a call to produce useful errors in your own programs"?