Merge pull request #172 from huikang/dmsg-invalid-criu-path

Add debug message when unable to execute criu
This commit is contained in:
Mrunal Patel 2015-08-03 10:57:12 -07:00
commit 2fbe13aac3
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() out, err := exec.Command(c.criuPath, "-V").Output()
if err != nil { 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 n, err := fmt.Sscanf(string(out), "Version: %d.%d.%d\n", &x, &y, &z) // 1.5.2