Skip to content

Commit

Permalink
add warning when no file will be patched #8
Browse files Browse the repository at this point in the history
  • Loading branch information
sandorfr committed Sep 6, 2016
1 parent 8b7652c commit db2031a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Common/Node/patchProcess.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,7 @@ export function apply(patcher: patch.IPatcher, workingDirectory: string, filters

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

0 comments on commit db2031a

Please sign in to comment.