summaryrefslogtreecommitdiffstats
path: root/pkg/commands
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2021-04-05 21:49:26 +1000
committerJesse Duffield <jessedduffield@gmail.com>2021-04-06 19:34:32 +1000
commite04e2ebab532e6d1ef856a24012f4bec4b10188a (patch)
treee08ac52f7480b83ce20ab0e7f974942d8c024f99 /pkg/commands
parent91a107eb6f2b81f6554c7a230258b507f3d1dae6 (diff)
try better logging for CI
Diffstat (limited to 'pkg/commands')
-rw-r--r--pkg/commands/oscommands/os.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/commands/oscommands/os.go b/pkg/commands/oscommands/os.go
index af5b97ca4..1a486162f 100644
--- a/pkg/commands/oscommands/os.go
+++ b/pkg/commands/oscommands/os.go
@@ -98,7 +98,7 @@ func (c *OSCommand) RunCommandWithOutput(formatString string, formatArgs ...inte
cmd := c.ExecutableFromString(command)
output, err := sanitisedCommandOutput(cmd.CombinedOutput())
if err != nil {
- c.Log.WithField("command", command).Error(err)
+ c.Log.WithField("command", command).Error(output)
}
return output, err
}
@@ -110,7 +110,7 @@ func (c *OSCommand) CatFile(filename string) (string, error) {
cmd := c.Command(arr[0], arr[1:]...)
output, err := sanitisedCommandOutput(cmd.CombinedOutput())
if err != nil {
- c.Log.WithField("command", cmdStr).Error(err)
+ c.Log.WithField("command", cmdStr).Error(output)
}
return output, err
}