Merge pull request #204 from mlaventure/checkpoint-error-output
Return runtime output on checkpoint operation errors
This commit is contained in:
commit
2239d4e329
@ -133,7 +133,11 @@ func (c *container) Checkpoint(cpt Checkpoint) error {
|
||||
add("--ext-unix-sk")
|
||||
}
|
||||
add(c.id)
|
||||
return exec.Command(c.runtime, args...).Run()
|
||||
out, err := exec.Command(c.runtime, args...).CombinedOutput()
|
||||
if err != nil {
|
||||
return fmt.Errorf("%s: %s", err.Error(), string(out))
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
||||
func (c *container) DeleteCheckpoint(name string) error {
|
||||
|
Loading…
Reference in New Issue
Block a user