From 7ac3cd263fd273171f67bfa8999a47ccc7e10954 Mon Sep 17 00:00:00 2001 From: mikhailshaganov <81769678+mikhailshaganov@users.noreply.github.com> Date: Fri, 24 Sep 2021 12:53:06 +0300 Subject: [PATCH] Prints error message encountered in cleanup-java (#220) --- dist/cleanup/index.js | 2 +- src/cleanup-java.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/cleanup/index.js b/dist/cleanup/index.js index f9b1000..97f86c2 100644 --- a/dist/cleanup/index.js +++ b/dist/cleanup/index.js @@ -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}`); } } }); diff --git a/src/cleanup-java.ts b/src/cleanup-java.ts index a30de4a..a890c4b 100644 --- a/src/cleanup-java.ts +++ b/src/cleanup-java.ts @@ -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}`); } } }