Fix example that uses ExitCoder

This commit is contained in:
Dan Buch 2016-05-25 12:07:49 -04:00
parent 3d75e9e711
commit ed8f4ac408
No known key found for this signature in database
GPG Key ID: FAEF12936DD3E3EC

View File

@ -498,7 +498,7 @@ func main() {
}
app.Action = func(ctx *cli.Context) error {
if !ctx.Bool("ginger-crouton") {
return cli.NewExitError("it is not in the soup", 86)
return cli.Exit("it is not in the soup", 86)
}
return nil
}