diff --git a/dist/cache-save/index.js b/dist/cache-save/index.js index f2e55aa..cb0db11 100644 --- a/dist/cache-save/index.js +++ b/dist/cache-save/index.js @@ -49211,7 +49211,7 @@ const cachePackages = () => __awaiter(void 0, void 0, void 0, function* () { } } 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) { core.info(`Cache hit occurred on the primary key ${primaryKey}, not saving cache.`); diff --git a/src/cache-save.ts b/src/cache-save.ts index a576c35..4d4f279 100644 --- a/src/cache-save.ts +++ b/src/cache-save.ts @@ -47,7 +47,7 @@ const cachePackages = async () => { } 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) {