Skip to content

Commit

Permalink
fix: more verbose log message when failing to import pgp key (#1371)
Browse files Browse the repository at this point in the history
  • Loading branch information
ReenigneArcher authored Apr 15, 2024
1 parent 8dff894 commit 86801cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/validate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ const verify = async (
path.join(__dirname, `${uploaderName}.SHA256SUM`),
], async (err, verifyResult) => {
if (err) {
setFailure('Codecov: Error importing pgp key', failCi);
setFailure(`Codecov: Error importing pgp key: ${err.message}`, failCi);
}
core.info(verifyResult);
await validateSha();
Expand All @@ -101,7 +101,7 @@ const verify = async (
path.join(__dirname, 'pgp_keys.asc'),
], async (err, importResult) => {
if (err) {
setFailure('Codecov: Error importing pgp key', failCi);
setFailure(`Codecov: Error importing pgp key: ${err.message}`, failCi);
}
core.info(importResult);
verifySignature();
Expand Down

0 comments on commit 86801cd

Please sign in to comment.