We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4028c1d + cd204e0 commit 1ff4b6eCopy full SHA for 1ff4b6e
lib/helper.js
@@ -174,7 +174,7 @@ function loadSettings(source, ctx) {
174
175
176
/**
177
- * Promise to load a files contents
+ * Promise to load a file's contents
178
*
179
* @param {string} filename The file to load
180
* @return {Promise.<string>} The file's contents
@@ -185,7 +185,10 @@ function readFilePromise(filename) {
185
deferred = Q.defer();
186
187
fs.readFile(filename, 'utf-8', function (err, contents) {
188
- if (err) {
+ if (err.code === 'ENOENT') {
189
+ debug(err.code + ': ' + filename);
190
+ deferred.resolve();
191
+ } else if (err) {
192
debug(err + ' ' + filename);
193
// TODO: better error handling
194
deferred.reject(err);
0 commit comments