about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--templater/templater.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/templater/templater.go b/templater/templater.go
index c9260abc2111..bb1f8c2eed39 100644
--- a/templater/templater.go
+++ b/templater/templater.go
@@ -66,7 +66,10 @@ func processResourceSet(c *context.Context, rs *context.ResourceSet) (*RenderedR
 	fmt.Fprintf(os.Stderr, "Loading resources for %s\n", rs.Name)
 
 	rp := path.Join(c.BaseDir, rs.Path)
-	files, err := ioutil.ReadDir(rp)
+
+	// Explicitly discard this error, which will give us an empty list of files instead.
+	// This will end up printing a warning to the user, but it won't stop the rest of the process.
+	files, _ := ioutil.ReadDir(rp)
 
 	resources, err := processFiles(c, rs, rp, files)