From 6dab63b3c0979112aff22ba71e84adac2a120618 Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Fri, 16 May 2014 16:59:29 -0700 Subject: [PATCH] XXX --- tail.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tail.go b/tail.go index 6ec57bc..61cf465 100644 --- a/tail.go +++ b/tail.go @@ -170,7 +170,7 @@ func (tail *Tail) reopen() error { func (tail *Tail) readLine() ([]byte, error) { line, isPrefix, err := tail.reader.ReadLine() if err != nil { - return nil, err + return line, err } // If MaxLineSize is set, we don't have to join the parts (let @@ -244,6 +244,7 @@ func (tail *Tail) tailFileSync() { } } case io.EOF: + // XXX: should `line` be returned at this point? if !tail.Follow { return }