From 5b6526a2adad6140c3878838ae0e7b61d5ee7594 Mon Sep 17 00:00:00 2001 From: Andrew Gregory Date: Tue, 27 Oct 2015 00:47:31 -0400 Subject: hook.c: print invalid option name Signed-off-by: Andrew Gregory Signed-off-by: Allan McRae --- lib/libalpm/hook.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libalpm') 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); } } -- cgit v1.2.3-70-g09d2