Home GnuPG

Treat invalid recipients error with higher priority than input failure

Description

Treat invalid recipients error with higher priority than input failure

The input failure might occur as secondary error caused by the failed
encryption. To allow a retry with always trusted recipients we need to
handle a failed encryption with invalid recipients before handling an
input failure. Otherwise, we keep handling input failures before other
signing or encryption error because input failures which are not secondary
errors will likely also cause signing or encryption errors as secondary
errors.