mirror of
git://git.gnupg.org/gnupg.git
synced 2025-04-17 15:44:34 +02: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:
parent
3d60ad5c8c
commit
092154e17e
@ -756,7 +756,12 @@ gpgsm_verify (ctrl_t ctrl, int in_fd, int data_fd, estream_t out_fp)
|
|||||||
char numbuf[50];
|
char numbuf[50];
|
||||||
sprintf (numbuf, "%d", rc );
|
sprintf (numbuf, "%d", rc );
|
||||||
gpgsm_status2 (ctrl, STATUS_ERROR, "verify.leave",
|
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;
|
return rc;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user