* sign.c (gpgsm_sign): Print an error message on all failures.
[gnupg.git] / sm / sign.c
index 5afbc6c..b3e3b56 100644 (file)
--- a/sm/sign.c
+++ b/sm/sign.c
@@ -622,6 +622,8 @@ gpgsm_sign (CTRL ctrl, CERTLIST signerlist,
 
 
  leave:
+  if (rc)
+    log_error ("error creating signature: %s\n", gpg_strerror (rc));
   if (release_signerlist)
     gpgsm_release_certlist (signerlist);
   ksba_cms_release (cms);