summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-09-01 14:48:55 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-09-01 14:48:55 (EDT)
commit4ee275c2629fe81a48d5c7b7cb50bdcaf07468f0 (patch)
tree2873113e9ffc970cfef8650c83e35ae992e1dc7e /lib
parent78665c20760d566f8bada19f346e7fd9d79b99eb (diff)
substvars: Pass argument to error
Diffstat (limited to 'lib')
-rw-r--r--lib/substvars.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/substvars.sh b/lib/substvars.sh
index ac3d29b..ee7e860 100644
--- a/lib/substvars.sh
+++ b/lib/substvars.sh
@@ -32,7 +32,7 @@ set_substvar()
name="$(echo "${name}" | tr 'A-Z-' 'a-z_')"
case "${name:- }" in
*[!a-z0-9_]*)
- error 2 "$(get_msg 'substvar_invalid')"
+ error 2 "$(get_msg 'substvar_invalid')" "${name}"
;;
esac