Print error message with line number on lexical errors.