From 4451cbc50b319205fc1bf162cdafa3f7609db141 Mon Sep 17 00:00:00 2001 From: mjarkk Date: Wed, 17 Oct 2018 21:14:24 +0200 Subject: [PATCH] handled golangcibot --- pkg/commands/os.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()) } } }()