Skip to content

Commit dd884e1

Browse files
author
Jacob Hoffman-Andrews
committed
Catch exceptions and continue
1 parent 6351663 commit dd884e1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

rewriter/rewriter.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,11 @@ function processDir(dir) {
4545
.pipe(es.mapSync(function (entry) {
4646
var filename = path.join(dir, entry.path);
4747
console.log("Rewriting " + filename);
48-
processFile(filename);
48+
try {
49+
processFile(filename);
50+
} catch(e) {
51+
console.log(filename, e);
52+
}
4953
}));
5054
}
5155

0 commit comments

Comments
 (0)