Skip to content

Commit 89b2397

Browse files
committed
Change 'pattern does not match any files' warning to fatal
Fixes softprops#383
1 parent c9b46fe commit 89b2397

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ async function run() {
2525
if (config.input_files) {
2626
const patterns = unmatchedPatterns(config.input_files);
2727
patterns.forEach((pattern) =>
28-
console.warn(`🤔 Pattern '${pattern}' does not match any files.`)
28+
throw new Error(`⚠️ Pattern '${pattern}' does not match any files.`)
2929
);
3030
if (patterns.length > 0 && config.input_fail_on_unmatched_files) {
3131
throw new Error(`⚠️ There were unmatched files`);

0 commit comments

Comments
 (0)