adjusting error printing to correctly identify when problematic input has been parsed