Skip to content

Commit

Permalink
Merge pull request #714 from jbemmel/patch-4
Browse files Browse the repository at this point in the history
Print error in template such that the user can fix it...
  • Loading branch information
hellt committed Dec 6, 2021
2 parents 1063606 + 076b0b0 commit af51a73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clab/config/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func RenderAll(allnodes map[string]*NodeConfig) error {
if l := tmpl.Lookup(tmplN); l == nil {
err := LoadTemplates(tmpl, fmt.Sprintf("%s", nc.Vars[vkRole]))
if err != nil {
log.Warnf("Unable to load template %s; skipping", tmplN)
log.Warnf("Unable to load template %s (%+v); skipping", tmplN, err)
continue
}
l = tmpl.Lookup(tmplN)
Expand Down

0 comments on commit af51a73

Please sign in to comment.