mirror of
https://code.forgejo.org/actions/cache.git
synced 2025-04-23 17:23:59 +08:00
Basic error handling in wrappers
This commit is contained in:
parent
ed5e94a5f5
commit
9ec16e95f3
7 changed files with 209 additions and 142 deletions
6
dist/restore-only/index.js
vendored
6
dist/restore-only/index.js
vendored
|
@ -47354,12 +47354,10 @@ function saveCache(paths, key, options) {
|
|||
}
|
||||
catch (error) {
|
||||
const typedError = error;
|
||||
if (typedError.name === ValidationError.name) {
|
||||
if (typedError.name === ValidationError.name ||
|
||||
typedError.name === ReserveCacheError.name) {
|
||||
throw error;
|
||||
}
|
||||
else if (typedError.name === ReserveCacheError.name) {
|
||||
core.info(`Failed to save: ${typedError.message}`);
|
||||
}
|
||||
else {
|
||||
core.warning(`Failed to save: ${typedError.message}`);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue