summaryrefslogtreecommitdiffstats
path: root/pkg/commands/oscommands
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2020-10-01 07:55:28 +1000
committerJesse Duffield <jessedduffield@gmail.com>2020-10-02 08:09:42 +1000
commitf3be2b3e68a49742ee88053a1d029926bc0d1819 (patch)
treed25592bbb8b82cea84fa97f3b8e3d5fb6267c3c9 /pkg/commands/oscommands
parent988176e07374f67885fa4e3dd498a5e8fc1cc06c (diff)
improved command for deleting a submodule
Diffstat (limited to 'pkg/commands/oscommands')
-rw-r--r--pkg/commands/oscommands/os.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkg/commands/oscommands/os.go b/pkg/commands/oscommands/os.go
index 45effa94d..8a0e1654e 100644
--- a/pkg/commands/oscommands/os.go
+++ b/pkg/commands/oscommands/os.go
@@ -97,7 +97,11 @@ func (c *OSCommand) RunCommandWithOutput(formatString string, formatArgs ...inte
}
c.Log.WithField("command", command).Info("RunCommand")
cmd := c.ExecutableFromString(command)
- return sanitisedCommandOutput(cmd.CombinedOutput())
+ output, err := sanitisedCommandOutput(cmd.CombinedOutput())
+ if err != nil {
+ c.Log.WithField("command", command).Error(err)
+ }
+ return output, err
}
// RunExecutableWithOutput runs an executable file and returns its output