diff options
Diffstat (limited to 'src/main.ts')
| -rw-r--r-- | src/main.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.ts b/src/main.ts index 4702fe0..07a7ce3 100644 --- a/src/main.ts +++ b/src/main.ts @@ -24,7 +24,7 @@ async function run(): Promise<void> { coreCommand.issueCommand('remove-matcher', {owner: 'checkout-git'}, '') } } catch (error) { - core.setFailed(error.message) + core.setFailed(`${(error as any)?.message ?? error}`) } } @@ -32,7 +32,7 @@ async function cleanup(): Promise<void> { try { await gitSourceProvider.cleanup(stateHelper.RepositoryPath) } catch (error) { - core.warning(error.message) + core.warning(`${(error as any)?.message ?? error}`) } } |
