Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/error.c
diff options
context:
space:
mode:
authorAndrew Gregory <andrew.gregory.8@gmail.com>2018-11-24 15:56:11 -0800
committerAllan McRae <allan@archlinux.org>2018-11-27 22:48:43 +1000
commit3726693612a7ab34a1cd27916a6d65314299812c (patch)
tree5d6287997c1e6ff702f58dac9cb16b547bf8fbb5 /lib/libalpm/error.c
parent508b4e3ec0cb3e365942f4dc0626edda4789932b (diff)
add specific error for missing gpg support
"wrong or NULL argument passed" is a useless error for end users. Fixes FS#60880. Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib/libalpm/error.c')
-rw-r--r--lib/libalpm/error.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libalpm/error.c b/lib/libalpm/error.c
index b4fc99ae..95be9d7b 100644
--- a/lib/libalpm/error.c
+++ b/lib/libalpm/error.c
@@ -159,6 +159,9 @@ const char SYMEXPORT *alpm_strerror(alpm_errno_t err)
return _("gpgme error");
case ALPM_ERR_EXTERNAL_DOWNLOAD:
return _("error invoking external downloader");
+ /* Missing compile-time features */
+ case ALPM_ERR_MISSING_CAPABILITY_SIGNATURES:
+ return _("compiled without signature support");
/* Unknown error! */
default:
return _("unexpected error");