diff --git a/src/restore.ts b/src/restore.ts index 2e680bc..6e2cd73 100644 --- a/src/restore.ts +++ b/src/restore.ts @@ -4,7 +4,7 @@ import { cleanTargetDir } from "./cleanup"; import { CacheConfig } from "./config"; import { getCacheProvider, reportError } from "./utils"; -process.on("uncaughtException", (e) => { +process.on("uncaughtException", (e: any) => { core.error(e.message); if (e.stack) { core.error(e.stack); diff --git a/src/save.ts b/src/save.ts index 1df7f1d..b2690d9 100644 --- a/src/save.ts +++ b/src/save.ts @@ -5,7 +5,7 @@ import { cleanBin, cleanGit, cleanRegistry, cleanTargetDir } from "./cleanup"; import { CacheConfig, isCacheUpToDate } from "./config"; import { getCacheProvider, reportError } from "./utils"; -process.on("uncaughtException", (e) => { +process.on("uncaughtException", (e: any) => { core.error(e.message); if (e.stack) { core.error(e.stack);