Skip to content

Commit 2298733

Browse files
committed
add debug logging
1 parent 3be3b8b commit 2298733

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/template/filemanager.go

+5
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package template
33
import (
44
"bytes"
55
"encoding/base64"
6+
"fmt"
67
"os"
78
"path/filepath"
89
"runtime"
@@ -28,7 +29,11 @@ type Files map[string]string
2829
func RenderFiles(filesdir string, ctx interface{}) (Files, error) {
2930
files := Files{}
3031

32+
fmt.Println("rendering files in", filesdir)
3133
err := filepath.Walk(filesdir, func(path string, f os.FileInfo, err error) error {
34+
if err != nil {
35+
return microerror.Mask(err)
36+
}
3237
if f.Mode().IsRegular() {
3338
tmpl, err := template.ParseFiles(path)
3439
if err != nil {

0 commit comments

Comments
 (0)