Skip to content

Commit 2905db4

Browse files
committed
update build
1 parent 57452eb commit 2905db4

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

dist/cache-save/index.js

+9-5
Original file line numberDiff line numberDiff line change
@@ -59965,7 +59965,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5996559965
return (mod && mod.__esModule) ? mod : { "default": mod };
5996659966
};
5996759967
Object.defineProperty(exports, "__esModule", ({ value: true }));
59968-
exports.logWarning = exports.run = void 0;
59968+
exports.run = void 0;
5996959969
const core = __importStar(__nccwpck_require__(2186));
5997059970
const cache = __importStar(__nccwpck_require__(7799));
5997159971
const fs_1 = __importDefault(__nccwpck_require__(7147));
@@ -59984,7 +59984,14 @@ function run() {
5998459984
yield cachePackages();
5998559985
}
5998659986
catch (error) {
59987-
core.setFailed(error.message);
59987+
let message = 'Unknown error!';
59988+
if (error instanceof Error) {
59989+
message = error.message;
59990+
}
59991+
if (typeof error === 'string') {
59992+
message = error;
59993+
}
59994+
core.setFailed(message);
5998859995
}
5998959996
});
5999059997
}
@@ -60002,9 +60009,7 @@ const cachePackages = () => __awaiter(void 0, void 0, void 0, function* () {
6000260009
const nonExistingPaths = cachePaths.filter(cachePath => !fs_1.default.existsSync(cachePath));
6000360010
if (nonExistingPaths.length === cachePaths.length) {
6000460011
core.warning(`There are no cache folders on the disk`);
60005-
logWarning(`There are no cache folders on the disk`);
6000660012
return;
60007-
throw new Error(`There are no cache folders on the disk`);
6000860013
}
6000960014
if (nonExistingPaths.length) {
6001060015
logWarning(`Cache folder path is retrieved but doesn't exist on disk: ${nonExistingPaths.join(', ')}`);
@@ -60023,7 +60028,6 @@ function logWarning(message) {
6002360028
const warningPrefix = '[warning]';
6002460029
core.info(`${warningPrefix}${message}`);
6002560030
}
60026-
exports.logWarning = logWarning;
6002760031
run();
6002860032

6002960033

0 commit comments

Comments
 (0)