Home GnuPG
Diffusion GpgOL 3dcea486dcdc

Improve error handling on encryption

Description

Improve error handling on encryption

* src/cryptcontroller.cpp (CryptController::parse_output): Handle
the case the the user selects no encryption recipients.
(CryptController::do_crypto): Accept error as argument and
set it / use it.
* src/mail.cpp (do_crypt): Handle error.

We still get General Error and Unknown Error way too much
but maybe it helps a bit. At least it won't give us
a little bit more information and don't show the bug
message.