diff options
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/main.go b/main.go index 2f5f1b9b34f4..00d06e7dc0a2 100644 --- a/main.go +++ b/main.go @@ -40,9 +40,13 @@ func templateCommand() cli.Command { Action: func(c *cli.Context) error { include := c.StringSlice("include") exclude := c.StringSlice("exclude") + ctx, err := loadContext(c) - resources, err := templater.LoadAndPrepareTemplates(&include, &exclude, ctx) + if err != nil { + return err + } + resources, err := templater.LoadAndPrepareTemplates(&include, &exclude, ctx) if err != nil { return err } |