Read-only mirror — the public repositories of the Forgejo instance, refreshed every 10 minutes. The live instance (fg.dieschoenewolke.de) is reachable only over the VPN; clone here with https://git.dieschoenewolke.de/git/<owner>/<repo>.git.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVallie Joseph <vmjoseph@github.com>2022-12-06 04:06:53 +0000
committerVallie Joseph <vmjoseph@github.com>2022-12-06 04:06:53 +0000
commit3e4fe0716e5bc540464c17fc24d7d762fc975367 (patch)
treeda4fb8729e8708652e81b84e6761c7cfd08a20ea /src
parent23b72b2a86145792a4202677f47f0fe4252decd2 (diff)
updating error handling
Diffstat (limited to 'src')
-rw-r--r--src/git-auth-helper.ts8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/git-auth-helper.ts b/src/git-auth-helper.ts
index 6e3ad28..73a7a0b 100644
--- a/src/git-auth-helper.ts
+++ b/src/git-auth-helper.ts
@@ -197,7 +197,13 @@ class GitAuthHelper {
if (this.temporaryHomePath?.length > 0) {
core.debug(`Unsetting HOME override`)
this.git.removeEnvironmentVariable('HOME')
- await io.rmRF(this.temporaryHomePath)
+ await io
+ .rmRF(this.temporaryHomePath)
+ // eslint-disable-next-line github/no-then
+ .catch(err => {
+ // eslint-disable-next-line i18n-text/no-en
+ core.warning(`Failed to remove temporary home directory: ${err}`)
+ })
}
}