Skip to content

Commit

Permalink
Merge pull request #69 from mittwald/fix-template-rendering
Browse files Browse the repository at this point in the history
don't shadow template parse error
  • Loading branch information
elenz97 authored Dec 4, 2023
2 parents d736758 + 32be2a0 commit d8389d3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/files/render.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ func renderFile(cfg *config.File) error {
}

tpl, err := template.New(cfg.Target).Parse(string(tplContents))
if err != nil {
return err
}

folderPath, err := filepath.Abs(filepath.Dir(cfg.Target))
if err != nil {
return err
Expand Down

0 comments on commit d8389d3

Please sign in to comment.