From 3726693612a7ab34a1cd27916a6d65314299812c Mon Sep 17 00:00:00 2001 From: Andrew Gregory Date: Sat, 24 Nov 2018 15:56:11 -0800 Subject: 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 Signed-off-by: Allan McRae --- lib/libalpm/error.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/libalpm/error.c') 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"); -- cgit v1.2.3-54-g00ecf