1
0
Fork 0
mirror of https://github.com/actions/setup-java synced 2024-12-22 13:12:43 +00:00

Prints error message encountered in cleanup-java (#220)

This commit is contained in:
mikhailshaganov 2021-09-24 12:53:06 +03:00 committed by GitHub
parent d34438b137
commit 7ac3cd263f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

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

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