Return runtime output on checkpoint operation errors
Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
This commit is contained in:
parent
21364997bb
commit
07646a7150
1 changed files with 5 additions and 1 deletions
|
@ -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 a new issue