Skip to content

Commit

Permalink
Provide ref to #167 in 'callback provided to sync' error
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Feb 26, 2015
1 parent 57e6b29 commit 29575fe
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ var childrenIgnored = common.childrenIgnored

function globSync (pattern, options) {
if (typeof options === 'function' || arguments.length === 3)
throw new TypeError('callback provided to sync glob')
throw new TypeError('callback provided to sync glob\n'+
'See: https://github.com/isaacs/node-glob/issues/167')

return new GlobSync(pattern, options).found
}
Expand All @@ -28,7 +29,8 @@ function GlobSync (pattern, options) {
throw new Error('must provide pattern')

if (typeof options === 'function' || arguments.length === 3)
throw new TypeError('callback provided to sync glob')
throw new TypeError('callback provided to sync glob\n'+
'See: https://github.com/isaacs/node-glob/issues/167')

if (!(this instanceof GlobSync))
return new GlobSync(pattern, options)
Expand Down

0 comments on commit 29575fe

Please sign in to comment.