summaryrefslogtreecommitdiffstats
path: root/pkg/commands/os.go
diff options
context:
space:
mode:
authormjarkk <mkopenga@gmail.com>2018-10-17 21:14:24 +0200
committermjarkk <mkopenga@gmail.com>2018-10-17 21:14:24 +0200
commit4451cbc50b319205fc1bf162cdafa3f7609db141 (patch)
treeabb70d2632fad1662c128a3db2de6469ca6028b6 /pkg/commands/os.go
parent01fa106de339a4340b6dbf847802a7b1efcc8359 (diff)
handled golangcibot
Diffstat (limited to 'pkg/commands/os.go')
-rw-r--r--pkg/commands/os.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/commands/os.go b/pkg/commands/os.go
index 5e11844b6..ae7e9c325 100644
--- a/pkg/commands/os.go
+++ b/pkg/commands/os.go
@@ -92,7 +92,8 @@ func (c *OSCommand) RunCommandWithOutputLive(command string, output func(string)
for scanner.Scan() {
toWrite := output(re.ReplaceAllString(scanner.Text(), ""))
if len(toWrite) > 0 {
- tty.Write([]byte(toWrite + "\n"))
+ _, err := tty.Write([]byte(toWrite + "\n"))
+ logrus.Error(err.Error())
}
}
}()