1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

gpgsm: Improve the status line for --verify errors.

* sm/verify.c (gpgsm_verify): Improve verify.leave status line.
--

Suggested-by: Jakob Bohm
This commit is contained in:
Werner Koch 2024-01-15 09:13:46 +01:00
parent 3d60ad5c8c
commit 092154e17e
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View File

@ -756,7 +756,12 @@ gpgsm_verify (ctrl_t ctrl, int in_fd, int data_fd, estream_t out_fp)
char numbuf[50];
sprintf (numbuf, "%d", rc );
gpgsm_status2 (ctrl, STATUS_ERROR, "verify.leave",
numbuf, NULL);
numbuf,
gpg_err_code (rc) == GPG_ERR_EPIPE?
"-- (Broken pipe on input or output)":
gpg_err_code (rc) == GPG_ERR_EOF?
"-- (End of file)" : NULL,
NULL);
}
return rc;