Skip to content

Commit

Permalink
Prints error message encountered in cleanup-java (#220)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikhailshaganov committed Sep 24, 2021
1 parent d34438b commit 7ac3cd2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/cleanup/index.js
Expand Up @@ -6196,7 +6196,7 @@ function removePrivateKeyFromKeychain() {
yield gpg.deleteKey(keyFingerprint);
}
catch (error) {
core.setFailed('Failed to remove private key');
core.setFailed(`Failed to remove private key due to: ${error.message}`);
}
}
});
Expand Down
2 changes: 1 addition & 1 deletion src/cleanup-java.ts
Expand Up @@ -11,7 +11,7 @@ async function removePrivateKeyFromKeychain() {
const keyFingerprint = core.getState(constants.STATE_GPG_PRIVATE_KEY_FINGERPRINT);
await gpg.deleteKey(keyFingerprint);
} catch (error) {
core.setFailed('Failed to remove private key');
core.setFailed(`Failed to remove private key due to: ${error.message}`);
}
}
}
Expand Down

0 comments on commit 7ac3cd2

Please sign in to comment.