mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-08 23:56:15 +02:00
try better logging for CI
This commit is contained in:
parent
91a107eb6f
commit
e04e2ebab5
@ -98,7 +98,7 @@ func (c *OSCommand) RunCommandWithOutput(formatString string, formatArgs ...inte
|
|||||||
cmd := c.ExecutableFromString(command)
|
cmd := c.ExecutableFromString(command)
|
||||||
output, err := sanitisedCommandOutput(cmd.CombinedOutput())
|
output, err := sanitisedCommandOutput(cmd.CombinedOutput())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
c.Log.WithField("command", command).Error(err)
|
c.Log.WithField("command", command).Error(output)
|
||||||
}
|
}
|
||||||
return output, err
|
return output, err
|
||||||
}
|
}
|
||||||
@ -110,7 +110,7 @@ func (c *OSCommand) CatFile(filename string) (string, error) {
|
|||||||
cmd := c.Command(arr[0], arr[1:]...)
|
cmd := c.Command(arr[0], arr[1:]...)
|
||||||
output, err := sanitisedCommandOutput(cmd.CombinedOutput())
|
output, err := sanitisedCommandOutput(cmd.CombinedOutput())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
c.Log.WithField("command", cmdStr).Error(err)
|
c.Log.WithField("command", cmdStr).Error(output)
|
||||||
}
|
}
|
||||||
return output, err
|
return output, err
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user