diff options
-rw-r--r-- | lib/template.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/template.sh b/lib/template.sh index 8cbdbfa..b8a7361 100644 --- a/lib/template.sh +++ b/lib/template.sh @@ -59,8 +59,9 @@ function template { # Skip any unset but referenced variables if [ -z "${!_varname:-}" ]; then printf \ - "WARN: Template variable '%s' is referenced but is unset.\n" \ - ${_varname} >&2 + "WARN: Unbound variable '%s' in template '%s'.\n" \ + "${_varname}" \ + "${src}" >&2 continue fi |