diff --git a/lib/src/read-contents/index.js b/lib/src/read-contents/index.js index 81f263cc..5c3117d7 100644 --- a/lib/src/read-contents/index.js +++ b/lib/src/read-contents/index.js @@ -39,7 +39,10 @@ function readContents(optResolver) { // This is invoked by the various readXxx modules when they've finished // reading the contents. function onRead(readErr) { - callback(readErr, file); + if (readErr) { + return callback(readErr); + } + return callback(null, file); } }