diff --git a/dist/cleanup/index.js b/dist/cleanup/index.js index f3b64129..f0dbeb3b 100644 --- a/dist/cleanup/index.js +++ b/dist/cleanup/index.js @@ -64612,14 +64612,11 @@ function save(id) { core.info(`Cache saved with the key: ${primaryKey}`); } catch (error) { - if (error.name === cache.ValidationError.name) { - throw error; - } - else if (error.name === cache.ReserveCacheError.name) { + if (error.name === cache.ReserveCacheError.name) { core.info(error.message); } else { - core.warning(error.message); + throw error; } } }); diff --git a/dist/setup/index.js b/dist/setup/index.js index 27907677..a699b541 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -19008,14 +19008,11 @@ function save(id) { core.info(`Cache saved with the key: ${primaryKey}`); } catch (error) { - if (error.name === cache.ValidationError.name) { - throw error; - } - else if (error.name === cache.ReserveCacheError.name) { + if (error.name === cache.ReserveCacheError.name) { core.info(error.message); } else { - core.warning(error.message); + throw error; } } });