]> ruderich.org/simon Gitweb - safcm/safcm.git/blobdiff - cmd/safcm-remote/run/cmd.go
Consistently use %v when (s)printing errors
[safcm/safcm.git] / cmd / safcm-remote / run / cmd.go
index 36e4e75bf332fdf011cf7f9df694f725cd14f541..8f3d6134b287702f8ae72a5f52be8d7bb25a89c2 100644 (file)
@@ -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