Skip to content

Commit

Permalink
Log pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
ascorbic committed Aug 5, 2024
1 parent 431efff commit 483ffdd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/astro/src/content/loaders/glob.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,9 @@ export function glob(globOptions: GlobOptions): Loader {
if (skipCount > 0) {
logger.warn(`The glob() loader cannot be used for files in ${bold('src/content')}.`);
if (skipCount > 10) {
logger.warn(`Skipped ${green(skippedFiles.length)} files.`);
logger.warn(`Skipped ${green(skippedFiles.length)} files that matched ${green(globOptions.pattern)}.`);
} else {
logger.warn(`Skipped:`);
logger.warn(`Skipped the following files that matched ${green(globOptions.pattern)}:`);
skippedFiles.forEach((file) => logger.warn(`• ${green(file)}`));
}
}
Expand Down

0 comments on commit 483ffdd

Please sign in to comment.