File tree 2 files changed +15
-0
lines changed
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));
46979
46979
const fs_1 = __importDefault(__webpack_require__(747));
46980
46980
const constants_1 = __webpack_require__(196);
46981
46981
const 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
+ });
46982
46989
function run() {
46983
46990
return __awaiter(this, void 0, void 0, function* () {
46984
46991
try {
Original file line number Diff line number Diff line change @@ -4,6 +4,14 @@ import fs from 'fs';
4
4
import { State } from './constants' ;
5
5
import { getCacheDirectoryPath , getPackageManagerInfo } from './cache-utils' ;
6
6
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
+
7
15
export async function run ( ) {
8
16
try {
9
17
const cacheLock = core . getInput ( 'cache' ) ;
You can’t perform that action at this time.
0 commit comments