Prints error message encountered in cleanup-java

This commit is contained in:
Bill Branan 2021-08-19 09:24:30 -04:00
parent 3bc31aaf88
commit c6adb1944e

View file

@ -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}`);
}
}
}