Skip to content

Commit

Permalink
fix(preprocessor): Throw error if can't open file
Browse files Browse the repository at this point in the history
  • Loading branch information
keithamus committed Aug 22, 2014
1 parent 51f1b88 commit bb4edde
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/preprocessor.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ var createPreprocessor = function(config, basePath, injector) {
}

return fs.readFile(file.originalPath, function(err, buffer) {
if (err) {
throw err;
}
file.sha = sha1(buffer);
nextPreprocessor(null, thisFileIsBinary ? buffer : buffer.toString());
});
Expand Down

0 comments on commit bb4edde

Please sign in to comment.