Minor change in input filter function: Ignore all lines after error line