Skip to content

Commit

Permalink
chore: add error message for javascript templating
Browse files Browse the repository at this point in the history
  • Loading branch information
yashmehrotra committed Oct 28, 2023
1 parent 7ee0d52 commit 10afdd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion template.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func RunTemplate(environment map[string]any, template Template) (string, error)
vm := otto.New()
for k, v := range environment {
if err := vm.Set(k, v); err != nil {
return "", fmt.Errorf("error setting %s", k)
return "", fmt.Errorf("error setting %s: %v", k, err)
}
}

Expand Down

0 comments on commit 10afdd2

Please sign in to comment.