*(home): fixed issues with setting static IP on Mac

This commit is contained in:
Andrey Meshkov
2020-02-13 16:47:30 +03:00
5 changed files with 57 additions and 36 deletions

View File

@@ -27,7 +27,7 @@ func RunCommand(command string, arguments ...string) (int, string, error) {
cmd := exec.Command(command, arguments...)
out, err := cmd.Output()
if err != nil {
return 1, "", fmt.Errorf("exec.Command(%s) failed: %s", command, err)
return 1, "", fmt.Errorf("exec.Command(%s) failed: %v: %s", command, err, string(out))
}
return cmd.ProcessState.ExitCode(), string(out), nil