File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -46979,6 +46979,13 @@ const cache = __importStar(__webpack_require__(692));
4697946979const fs_1 = __importDefault(__webpack_require__(747));
4698046980const constants_1 = __webpack_require__(196);
4698146981const cache_utils_1 = __webpack_require__(143);
46982+ // Catch and log any unhandled exceptions. These exceptions can leak out of the uploadChunk method in
46983+ // @actions/toolkit when a failed upload closes the file descriptor causing any in-process reads to
46984+ // throw an uncaught exception. Instead of failing this action, just warn.
46985+ process.on('uncaughtException', e => {
46986+ const warningPrefix = '[warning]';
46987+ core.info(`${warningPrefix}${e.message}`);
46988+ });
4698246989function run() {
4698346990 return __awaiter(this, void 0, void 0, function* () {
4698446991 try {
Original file line number Diff line number Diff line change @@ -4,6 +4,14 @@ import fs from 'fs';
44import { State } from './constants' ;
55import { getCacheDirectoryPath , getPackageManagerInfo } from './cache-utils' ;
66
7+ // Catch and log any unhandled exceptions. These exceptions can leak out of the uploadChunk method in
8+ // @actions /toolkit when a failed upload closes the file descriptor causing any in-process reads to
9+ // throw an uncaught exception. Instead of failing this action, just warn.
10+ process . on ( 'uncaughtException' , e => {
11+ const warningPrefix = '[warning]' ;
12+ core . info ( `${ warningPrefix } ${ e . message } ` ) ;
13+ } ) ;
14+
715export async function run ( ) {
816 try {
917 const cacheLock = core . getInput ( 'cache' ) ;
You can’t perform that action at this time.
0 commit comments