summaryrefslogtreecommitdiffstats
path: root/tools/gpgconf.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gpgconf.c')
-rw-r--r--tools/gpgconf.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/tools/gpgconf.c b/tools/gpgconf.c
index 1b9a9268f..697e9c903 100644
--- a/tools/gpgconf.c
+++ b/tools/gpgconf.c
@@ -1347,9 +1347,12 @@ show_versions_via_dirmngr (estream_t fp)
int exitcode;
gnupg_process_ctl (proc, GNUPG_PROCESS_GET_EXIT_ID, &exitcode);
- log_error ("running %s failed (exitcode=%d): %s\n",
- pgmname, exitcode, gpg_strerror (err));
- es_fprintf (fp, "[error: can't get further info]\n");
+ if (exitcode)
+ {
+ log_error ("running %s failed (exitcode=%d): %s\n",
+ pgmname, exitcode, gpg_strerror (err));
+ es_fprintf (fp, "[error: can't get further info]\n");
+ }
}
gnupg_process_release (proc);
xfree (line);