Skip to content

Commit 7ac3cd2

Browse files
Prints error message encountered in cleanup-java (#220)
1 parent d34438b commit 7ac3cd2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/cleanup/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6196,7 +6196,7 @@ function removePrivateKeyFromKeychain() {
61966196
yield gpg.deleteKey(keyFingerprint);
61976197
}
61986198
catch (error) {
6199-
core.setFailed('Failed to remove private key');
6199+
core.setFailed(`Failed to remove private key due to: ${error.message}`);
62006200
}
62016201
}
62026202
});

src/cleanup-java.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ async function removePrivateKeyFromKeychain() {
1111
const keyFingerprint = core.getState(constants.STATE_GPG_PRIVATE_KEY_FINGERPRINT);
1212
await gpg.deleteKey(keyFingerprint);
1313
} catch (error) {
14-
core.setFailed('Failed to remove private key');
14+
core.setFailed(`Failed to remove private key due to: ${error.message}`);
1515
}
1616
}
1717
}

0 commit comments

Comments
 (0)