Updated error message

This commit is contained in:
lmvysakh 2026-08-19 15:35:31 +05:30
parent 9191ea1a55
commit 9bf36389b4
4 changed files with 6 additions and 4 deletions

2
dist/setup/index.js vendored
View file

@ -103351,7 +103351,7 @@ class CacheDistributor {
.split('\n')
.join(',')} or ${CACHE_DEPENDENCY_BACKUP_PATH}`
: this.cacheDependencyPath.split('\n').join(',');
throw new Error(`No file in ${process.cwd()} matched to [${file}], make sure you have checked out the target repository`);
throw new Error(`No file in ${process.cwd()} matched to [${file}] for ${this.packageManager}. Make sure you have checked out the target repository, or consider removing the cache step if there are no dependencies to cache.`);
}
const cachePath = await this.getCacheGlobalDirectories();
saveState(State.CACHE_PATHS, cachePath);