1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2024-11-26 09:00:57 +02:00

Fixed no error text on windows

when executing a command live on windows it detects errors but did just show a empty string
This commit is contained in:
mjarkk 2018-11-10 08:43:02 +01:00
parent 5ae0e75e5e
commit 18bcc0df4d

View File

@ -5,5 +5,6 @@ package commands
// RunCommandWithOutputLiveWrapper runs a command live but because of windows compatibility this command can't be ran there
// TODO: Remove this hack and replace it with a propper way to run commands live on windows
func RunCommandWithOutputLiveWrapper(c *OSCommand, command string, output func(string) string) (errorMessage string, codeError error) {
return errorMessage, c.RunCommand(command)
cmdOputput := c.RunCommand(command)
return cmdOputput.Error(), cmdOputput
}