From de65f7ec41ed0bfc31e0cc7a87bb04a70dc72a07 Mon Sep 17 00:00:00 2001 From: Silvan Jegen Date: Wed, 15 Feb 2017 12:35:20 +0100 Subject: Propagate Input error --- input/stdin/stdin.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'input/stdin') diff --git a/input/stdin/stdin.go b/input/stdin/stdin.go index e2910ec..394b952 100644 --- a/input/stdin/stdin.go +++ b/input/stdin/stdin.go @@ -35,9 +35,8 @@ func (i *StdinInput) Start() chan *work.Work { } if err != nil { fmt.Printf("Error when reading input from Stdin: %q", err) - os.Exit(1) } - i.retchan <- &work.Work{Data: bs} + i.retchan <- &work.Work{Data: bs, Err: err} } close(i.retchan) }() -- cgit v1.2.3