fix main: Add a forgotten error check

This commit is contained in:
Vincent Ambo 2017-02-09 15:44:07 +01:00
parent 2f6e008121
commit c181decd9d

View file

@ -40,9 +40,13 @@ func templateCommand() cli.Command {
Action: func(c *cli.Context) error { Action: func(c *cli.Context) error {
include := c.StringSlice("include") include := c.StringSlice("include")
exclude := c.StringSlice("exclude") exclude := c.StringSlice("exclude")
ctx, err := loadContext(c)
resources, err := templater.LoadAndPrepareTemplates(&include, &exclude, ctx)
ctx, err := loadContext(c)
if err != nil {
return err
}
resources, err := templater.LoadAndPrepareTemplates(&include, &exclude, ctx)
if err != nil { if err != nil {
return err return err
} }