Is passing the number of lines to isError() really intended?