Browse Source

Fix rebase for init error

Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@crosbymichael.com> (github: crosbymichael)
Michael Crosby 11 years ago
parent
commit
d5112ffce6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      execdriver/lxc/driver.go

+ 1 - 1
execdriver/lxc/driver.go

@@ -43,7 +43,7 @@ func init() {
 			os.Exit(127)
 		}
 		if err := syscall.Exec(path, args.Args, os.Environ()); err != nil {
-			panic(err)
+			return fmt.Errorf("dockerinit unable to execute %s - %s", path, err)
 		}
 		panic("Unreachable")
 	})