From c181decd9d6584ecd7b5d5596f25f7739442a328 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Thu, 9 Feb 2017 15:44:07 +0100 Subject: [PATCH] fix main: Add a forgotten error check --- main.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 2f5f1b9b3..00d06e7dc 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) + ctx, err := loadContext(c) + if err != nil { + return err + } + + resources, err := templater.LoadAndPrepareTemplates(&include, &exclude, ctx) if err != nil { return err }