Move LineReader.eof to its companion object and use it for error msg