X-Git-Url: https://ruderich.org/simon/gitweb/?p=safcm%2Fsafcm.git;a=blobdiff_plain;f=cmd%2Fsafcm-remote%2Frun%2Fcmd.go;h=8f3d6134b287702f8ae72a5f52be8d7bb25a89c2;hp=36e4e75bf332fdf011cf7f9df694f725cd14f541;hb=184dff6d9bd322819d25e4dfdf0a69f2a163974b;hpb=e0d1ceb383e5672de1a414f192eb2849a1887934 diff --git a/cmd/safcm-remote/run/cmd.go b/cmd/safcm-remote/run/cmd.go index 36e4e75..8f3d613 100644 --- a/cmd/safcm-remote/run/cmd.go +++ b/cmd/safcm-remote/run/cmd.go @@ -62,7 +62,7 @@ func (c *Cmd) Run(module string, args ...string) ([]byte, []byte, error) { } if err != nil { return nil, nil, fmt.Errorf( - "%s failed: %s; stdout: %q, stderr: %q", + "%s failed: %v; stdout: %q, stderr: %q", quoted, err, stdout.String(), stderr.String()) } return stdout.Bytes(), stderr.Bytes(), nil @@ -78,7 +78,7 @@ func (c *Cmd) CombinedOutputCmd(module string, cmd *exec.Cmd) ([]byte, error) { c.logger.Debug2f("%s: command output:\n%s", module, out) } if err != nil { - return nil, fmt.Errorf("%s failed: %s; output: %q", + return nil, fmt.Errorf("%s failed: %v; output: %q", quoted, err, out) } return out, nil