Add better output for extraction error

Add error output to grade reason so
extraction errors can be debugged more
easily.