## Documentation

* Moved package comment to doc.go
This commit is contained in:
Spencer
2018-07-22 19:14:26 -04:00
parent 70211f66b0
commit 99f9fcc0c4
5 changed files with 24 additions and 15 deletions

View File

@@ -51,7 +51,7 @@ func Run(name string, args ...string) ([]byte, error) {
cmd := exec.Command(std.Cmd, parseArgs(name, args...)...)
cmd.Stdout, cmd.Stderr = &out, &errs
if err := cmd.Run(); err != nil || len(errs.Bytes()) != 0 {
return out.Bytes(), fmt.Errorf("err: \"%s\"\nargs: \"%s\"\nout: \"%s\"", errs.String(), args, out.String())
return out.Bytes(), fmt.Errorf("err: \"%s %s\"\nargs: \"%s\"\nout: \"%s\"", err, errs.String(), args, out.String())
}
return out.Bytes(), nil
}