Skip to content

Commit

Permalink
new build
Browse files Browse the repository at this point in the history
  • Loading branch information
Deepak Dahiya authored and GitHub committed May 4, 2022
1 parent 626c44c commit 12086c7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
5 changes: 3 additions & 2 deletions dist/restore/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -48245,11 +48245,12 @@ function run() {
core.info(`Cache restored from key: ${cacheKey}`);
}
catch (error) {
if (error.name === cache.ValidationError.name) {
const typedError = error;
if (typedError.name === cache.ValidationError.name) {
throw error;
}
else {
utils.logWarning(error.message);
utils.logWarning(typedError.message);
utils.setCacheHitOutput(false);
}
}
Expand Down
9 changes: 5 additions & 4 deletions dist/save/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -46645,14 +46645,15 @@ function run() {
core.info(`Cache saved with key: ${primaryKey}`);
}
catch (error) {
if (error.name === cache.ValidationError.name) {
const typedError = error;
if (typedError.name === cache.ValidationError.name) {
throw error;
}
else if (error.name === cache.ReserveCacheError.name) {
core.info(error.message);
else if (typedError.name === cache.ReserveCacheError.name) {
core.info(typedError.message);
}
else {
utils.logWarning(error.message);
utils.logWarning(typedError.message);
}
}
}
Expand Down

0 comments on commit 12086c7

Please sign in to comment.