Skip to content

Commit

Permalink
Merge pull request #1143 from keithamus/patch-1
Browse files Browse the repository at this point in the history
fix(preprocessor): Throw error if can't open file
  • Loading branch information
maksimr committed Aug 26, 2014
2 parents fd0907c + bb4edde commit 6ef74f2
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 @@ -90,6 +90,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 6ef74f2

Please sign in to comment.