Fixed text of the error

This commit is contained in:
Ivan Zosimov 2022-04-20 17:07:52 +02:00
parent 9bc7dce839
commit 832658fa34
2 changed files with 2 additions and 2 deletions

View file

@ -49211,7 +49211,7 @@ const cachePackages = () => __awaiter(void 0, void 0, void 0, function* () {
} }
} }
if (!pathsCounter) { if (!pathsCounter) {
throw `Cache folder paths are retrieved but don't exist on disk`; throw new Error(`No cache folders exist on disk`);
} }
if (primaryKey === state) { if (primaryKey === state) {
core.info(`Cache hit occurred on the primary key ${primaryKey}, not saving cache.`); core.info(`Cache hit occurred on the primary key ${primaryKey}, not saving cache.`);

View file

@ -47,7 +47,7 @@ const cachePackages = async () => {
} }
if (!pathsCounter) { if (!pathsCounter) {
throw new Error(`Cache folder paths are retrieved but don't exist on disk`); throw new Error(`No cache folders exist on disk`);
} }
if (primaryKey === state) { if (primaryKey === state) {