Merge pull request #891 from mrunalp/fix_action_sig

Add error return to action function signature
This commit is contained in:
Aleksa Sarai 2016-06-08 09:11:44 +10:00
commit e34cb45a49
1 changed files with 1 additions and 1 deletions

View File

@ -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