diff options
author | Silvan Jegen <s.jegen@gmail.com> | 2017-02-15 12:35:20 +0100 |
---|---|---|
committer | Silvan Jegen <s.jegen@gmail.com> | 2017-02-15 12:35:20 +0100 |
commit | de65f7ec41ed0bfc31e0cc7a87bb04a70dc72a07 (patch) | |
tree | a68a8091cc0e851600bc650b4c565de341e53db5 /input/stdin | |
parent | 07e3d60146de6c5906382e378cdcb3d6a6989cd0 (diff) |
Propagate Input error
Diffstat (limited to 'input/stdin')
-rw-r--r-- | input/stdin/stdin.go | 3 |
1 files changed, 1 insertions, 2 deletions
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) }() |