chore: update error and warning messages for not matching files in files field (#568)
This commit is contained in:
parent
01050bd877
commit
33fcd69d45
@ -67,9 +67,9 @@ async function run() {
|
|||||||
const files = paths(config.input_files);
|
const files = paths(config.input_files);
|
||||||
if (files.length == 0) {
|
if (files.length == 0) {
|
||||||
if (config.input_fail_on_unmatched_files) {
|
if (config.input_fail_on_unmatched_files) {
|
||||||
throw new Error(`⚠️ ${config.input_files} not include valid file.`);
|
throw new Error(`⚠️ ${config.input_files} does not include a valid file.`);
|
||||||
} else {
|
} else {
|
||||||
console.warn(`🤔 ${config.input_files} not include valid file.`);
|
console.warn(`🤔 ${config.input_files} does not include a valid file.`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const currentAssets = rel.assets;
|
const currentAssets = rel.assets;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user