From 2742b68906f9999f33446ebe6b16b0d313a4db48 Mon Sep 17 00:00:00 2001 From: priya-kinthali Date: Mon, 11 Dec 2023 18:20:22 +0530 Subject: [PATCH] setup node in local --- src/cache-save.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cache-save.ts b/src/cache-save.ts index 4499e999..684e42cf 100644 --- a/src/cache-save.ts +++ b/src/cache-save.ts @@ -7,6 +7,7 @@ import {getPackageManagerInfo} from './cache-utils'; // Catch and log any unhandled exceptions. These exceptions can leak out of the uploadChunk method in // @actions/toolkit when a failed upload closes the file descriptor causing any in-process reads to // throw an uncaught exception. Instead of failing this action, just warn. + process.on('uncaughtException', e => { const warningPrefix = '[warning]'; core.info(`${warningPrefix}${e.message}`);