Skip to content

Commit 5edd35d

Browse files
committed
[fix] Handle cps on sanity checks rejection
1 parent d368a9c commit 5edd35d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scan.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ module.exports = function scan(pattern, globOptions, callback){
2626
_.isEmpty(pattern) ||
2727
(globOptions && !_.isPlainObject(globOptions))
2828
){
29-
return Promise.reject(new Error('Invalid parameter type'));
29+
return Promise.reject(new Error('Invalid parameter type')).nodeify(callback);
3030
}
3131

3232
// Generate files reports promises array

0 commit comments

Comments
 (0)