From c181decd9d6584ecd7b5d5596f25f7739442a328 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Thu, 9 Feb 2017 15:44:07 +0100 Subject: fix main: Add a forgotten error check --- main.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 } -- cgit 1.4.1