3
0
Fork 0
mirror of https://gitea.com/actions/setup-node.git synced 2024-11-24 11:09:33 +01:00

Fix types for errors

This commit is contained in:
Haneen Mahdin 2022-07-30 09:04:33 +05:30
parent f5115afcd8
commit 7884734703
2 changed files with 2 additions and 2 deletions

View file

@ -17,7 +17,7 @@ export async function run() {
const cacheLock = core.getInput('cache');
await cachePackages(cacheLock);
} catch (error) {
core.setFailed(error.message);
core.setFailed((error as Error).message);
}
}

View file

@ -72,7 +72,7 @@ export async function run() {
`##[add-matcher]${path.join(matchersPath, 'eslint-compact.json')}`
);
} catch (err) {
core.setFailed(err.message);
core.setFailed((err as Error).message);
}
}