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.
1 parent 7acb83d commit 200132dCopy full SHA for 200132d
lib/load.js
@@ -324,10 +324,10 @@ var Loader = function (data) {
324
callback = typeof callback === 'function' ? callback : noop;
325
326
if (!options.path) {
327
- return callback(new Error('Path is not defined'));
+ return callback(new Error('Path is not defined'), null);
328
}
329
if (fs.existsSync(options.path)) {
330
- return callback(new Error('Path ' + options.path + ' exists'));
+ return callback(new Error('Path ' + options.path + ' exists'), null);
331
332
333
process()
@@ -336,7 +336,7 @@ var Loader = function (data) {
336
})
337
.catch(function (e) {
338
errorCleanup();
339
- return callback(e);
+ return callback(e, null);
340
});
341
342
0 commit comments