Skip to content

Commit

Permalink
Change 'pattern does not match any files' warning to fatal
Browse files Browse the repository at this point in the history
  • Loading branch information
rpdelaney committed Sep 11, 2023
1 parent c9b46fe commit 89b2397
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ async function run() {
if (config.input_files) {
const patterns = unmatchedPatterns(config.input_files);
patterns.forEach((pattern) =>
console.warn(`馃 Pattern '${pattern}' does not match any files.`)
throw new Error(`鈿狅笍 Pattern '${pattern}' does not match any files.`)
);
if (patterns.length > 0 && config.input_fail_on_unmatched_files) {
throw new Error(`鈿狅笍 There were unmatched files`);
Expand Down

0 comments on commit 89b2397

Please sign in to comment.