go-client: Return an ExitStatus struct when calling process.Delete()

Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
This commit is contained in:
Kenfe-Mickael Laventure
2017-08-23 10:11:35 -07:00
parent 12b43a5c8a
commit 7f6c487031
4 changed files with 41 additions and 23 deletions

View File

@@ -25,8 +25,8 @@ var taskDeleteCommand = cli.Command{
if err != nil {
return err
}
if status != 0 {
return cli.NewExitError("", int(status))
if ec := status.ExitCode(); ec != 0 {
return cli.NewExitError("", int(ec))
}
return nil
},