mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-10 21:53:57 +08:00
Add error return to action function signature
Not having an error return is deprecated Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user