From bd24feaa86f8154e550107990392ac9ac05e60d4 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Fri, 19 Oct 2012 11:23:39 +0200 Subject: Trace the use of GPG_ERR_INV_ENGINE. * src/debug.h: Include "gpgme.h" (_gpgme_trace_gpgme_error): New. (trace_gpg_error): New macro. Use it in all files where we return GPG_ERR_INV_ENGINE; also "include debug.h" as needed. -- This is a pretty common error code but often it is hard to figure out the actual cause. With debug level 4 we now print the file name and line number where this error code is generated by gpgme. Along with the git revision printed in the first log lines, this should give us an easier way to track down the problems related to this error code. --- src/delete.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/delete.c') diff --git a/src/delete.c b/src/delete.c index 283b3e60..37e54f89 100644 --- a/src/delete.c +++ b/src/delete.c @@ -48,7 +48,7 @@ delete_status_handler (void *priv, gpgme_status_code_t code, char *args) gpg_err_set_errno (0); problem = strtol (args, &tail, 0); if (errno || (*tail && *tail != ' ')) - return gpg_error (GPG_ERR_INV_ENGINE); + return trace_gpg_error (GPG_ERR_INV_ENGINE); switch (problem) { -- cgit v1.2.3