Wrap exception properly in PgpHelper

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=188346570
This commit is contained in:
mcilwain 2018-03-08 09:57:18 -08:00 committed by jianglai
parent c4f1be4baa
commit 7a7ad5c528

View file

@ -88,8 +88,7 @@ public final class PgpHelper {
throw new VerifyException(String.format(
"No public key (%s) found matching substring: %s", want, query));
} catch (PGPException e) {
throw new VerifyException(String.format(
"Public key lookup with query %s failed: %s", query, e.getMessage()));
throw new VerifyException(String.format("Public key lookup failed for query: %s", query), e);
}
}