From 1494c72b84a86c4778f238d7181a93107c0137e0 Mon Sep 17 00:00:00 2001 From: Mrunal Patel Date: Tue, 7 Jun 2016 14:42:54 -0700 Subject: [PATCH] Add error return to action function signature Not having an error return is deprecated Signed-off-by: Mrunal Patel --- main_unix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main_unix.go b/main_unix.go index da9a61d3..b601abc7 100644 --- a/main_unix.go +++ b/main_unix.go @@ -21,7 +21,7 @@ func init() { var initCommand = cli.Command{ Name: "init", Usage: `initialize the namespaces and launch the process (do not call it outside of runc)`, - Action: func(context *cli.Context) { + Action: func(context *cli.Context) error { factory, _ := libcontainer.New("") if err := factory.StartInitialization(); err != nil { // as the error is sent back to the parent there is no need to log