diff options
Diffstat (limited to 'libpod/healthcheck_linux.go')
| -rw-r--r-- | libpod/healthcheck_linux.go | 5 | 
1 files changed, 2 insertions, 3 deletions
diff --git a/libpod/healthcheck_linux.go b/libpod/healthcheck_linux.go index 08f37d412..b0f1ff35d 100644 --- a/libpod/healthcheck_linux.go +++ b/libpod/healthcheck_linux.go @@ -35,9 +35,8 @@ func (c *Container) createTimer() error {  	conn.Close()  	logrus.Debugf("creating systemd-transient files: %s %s", "systemd-run", cmd)  	systemdRun := exec.Command("systemd-run", cmd...) -	_, err = systemdRun.CombinedOutput() -	if err != nil { -		return err +	if output, err := systemdRun.CombinedOutput(); err != nil { +		return errors.Errorf("%s", output)  	}  	return nil  }  | 
