aboutsummaryrefslogtreecommitdiffstats
path: root/golib/eows/eows-out.go
diff options
context:
space:
mode:
Diffstat (limited to 'golib/eows/eows-out.go')
-rw-r--r--golib/eows/eows-out.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/golib/eows/eows-out.go b/golib/eows/eows-out.go
index 2a6b110..6f6706c 100644
--- a/golib/eows/eows-out.go
+++ b/golib/eows/eows-out.go
@@ -24,13 +24,13 @@ func (e *ExecOverWS) cmdPumpStdout(r io.Reader, done chan struct{}) {
// else use default sc.ScanLines
if e.OutSplit == SplitChar {
- sc.Split(scanBlocks)
+ sc.Split(scanBlocks)
}
for sc.Scan() {
e.OutputCB(e, sc.Text(), "")
}
- if sc.Err() != nil {
+ if sc.Err() != nil && !strings.Contains(sc.Err().Error(), "file already closed") {
e.logError("stdout scan: %v", sc.Err())
}
@@ -46,13 +46,13 @@ func (e *ExecOverWS) cmdPumpStderr(r io.Reader) {
// else use default sc.ScanLines
if e.OutSplit == SplitChar {
- sc.Split(scanBlocks)
+ sc.Split(scanBlocks)
}
for sc.Scan() {
e.OutputCB(e, "", sc.Text())
}
- if sc.Err() != nil {
+ if sc.Err() != nil && !strings.Contains(sc.Err().Error(), "file already closed") {
e.logError("stderr scan: %v", sc.Err())
}
}