From 832658fa3431958cae41302b3e54e22ba13c785a Mon Sep 17 00:00:00 2001 From: Ivan Zosimov Date: Wed, 20 Apr 2022 17:07:52 +0200 Subject: [PATCH] Fixed text of the error --- dist/cache-save/index.js | 2 +- src/cache-save.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) {