summaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
authormjarkk <mkopenga@gmail.com>2018-11-10 08:43:02 +0100
committermjarkk <mkopenga@gmail.com>2018-11-10 08:43:02 +0100
commit18bcc0df4d28f84086e9f5ecb1771e6afc582fc9 (patch)
tree2cdafeb5a609993883eae160c1fe9e820204c908 /pkg
parent5ae0e75e5e112a9dd9338d44699cbeaaa13a4370 (diff)
Fixed no error text on windows
when executing a command live on windows it detects errors but did just show a empty string
Diffstat (limited to 'pkg')
-rw-r--r--pkg/commands/exec_live_win.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/commands/exec_live_win.go b/pkg/commands/exec_live_win.go
index 835d7da68..d97274279 100644
--- a/pkg/commands/exec_live_win.go
+++ b/pkg/commands/exec_live_win.go
@@ -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
}