summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Gregory <andrew.gregory.8@gmail.com>2015-10-27 05:47:31 +0100
committerAllan McRae <allan@archlinux.org>2015-10-27 10:38:57 +0100
commit5b6526a2adad6140c3878838ae0e7b61d5ee7594 (patch)
tree904b8a3631e3b1698238c313086580eeb1e5fa4f
parentb46bdeea146b19f026b2bb2ad4d281aa89fff777 (diff)
downloadpacman-5b6526a2adad6140c3878838ae0e7b61d5ee7594.tar.gz
pacman-5b6526a2adad6140c3878838ae0e7b61d5ee7594.tar.xz
hook.c: print invalid option name
Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
-rw-r--r--lib/libalpm/hook.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/hook.c b/lib/libalpm/hook.c
index c7b4ee87..463b76a2 100644
--- a/lib/libalpm/hook.c
+++ b/lib/libalpm/hook.c
@@ -210,7 +210,7 @@ static int _alpm_hook_parse_cb(const char *file, int line,
} else if(strcmp(key, "Exec") == 0) {
STRDUP(hook->cmd, value, return 1);
} else {
- error(_("hook %s line %d: invalid option %s\n"), file, line, value);
+ error(_("hook %s line %d: invalid option %s\n"), file, line, key);
}
}