File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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` ) ;
@@ -63,7 +63,7 @@ async function run() {
6363 if ( config . input_files && config . input_files . length > 0 ) {
6464 const files = paths ( config . input_files ) ;
6565 if ( files . length == 0 ) {
66- console . warn ( `🤔 ${ config . input_files } not include valid file.`) ;
66+ throw new Error ( `⚠️ ${ config . input_files } not include valid file.`) ;
6767 }
6868 const currentAssets = rel . assets ;
6969 const assets = await Promise . all (
You can’t perform that action at this time.
0 commit comments