Skip to content

Commit db2031a

Browse files
committed
add warning when no file will be patched #8
1 parent 8b7652c commit db2031a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Common/Node/patchProcess.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,7 @@ export function apply(patcher: patch.IPatcher, workingDirectory: string, filters
3636

3737
fs.writeFileSync(file, bom.restoreBom(fileContent), { encoding: 'utf8' });
3838
}
39+
if (!files.length){
40+
tl.warning("Patch was not applied because there are no file matching the provided patterns in the specified directory");
41+
}
3942
}

0 commit comments

Comments
 (0)