Add debug message when unable to execute criu

Signed-off-by: Hui Kang <hkang.sunysb@gmail.com>
This commit is contained in:
Hui Kang 2015-08-03 17:09:45 +00:00
parent 0518d5aaf9
commit 0f66ff921a
1 changed files with 1 additions and 1 deletions

View File

@ -273,7 +273,7 @@ func (c *linuxContainer) checkCriuVersion() error {
out, err := exec.Command(c.criuPath, "-V").Output()
if err != nil {
return err
return fmt.Errorf("Unable to execute CRIU command: %s", c.criuPath)
}
n, err := fmt.Sscanf(string(out), "Version: %d.%d.%d\n", &x, &y, &z) // 1.5.2