From 3e4fe0716e5bc540464c17fc24d7d762fc975367 Mon Sep 17 00:00:00 2001 From: Vallie Joseph Date: Tue, 6 Dec 2022 04:06:53 +0000 Subject: updating error handling --- src/git-auth-helper.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src') 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}`) + }) } } -- cgit v1.2.3