hook.c: print invalid option name

Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Andrew Gregory 2015-10-27 00:47:31 -04:00 committed by Allan McRae
parent b46bdeea14
commit 5b6526a2ad
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}