From 11ef2f0db46b8507007c740300fbf486934aa996 Mon Sep 17 00:00:00 2001 From: Michael Crosby Date: Thu, 16 Jan 2014 17:55:03 -0800 Subject: [PATCH] Return error and not panic when cannot exec in dockerinit Docker-DCO-1.1-Signed-off-by: Michael Crosby (github: crosbymichael) --- sysinit/sysinit.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sysinit/sysinit.go b/sysinit/sysinit.go index f906b7d2dd..ce46e06f14 100644 --- a/sysinit/sysinit.go +++ b/sysinit/sysinit.go @@ -209,7 +209,7 @@ func executeProgram(args *DockerInitArgs) error { } if err := syscall.Exec(path, args.args, os.Environ()); err != nil { - panic(err) + return fmt.Errorf("dockerinit unable to execute %s - %s", path, err) } // Will never reach here