diff options
Diffstat (limited to 'node_modules/which/which.js')
-rw-r--r-- | node_modules/which/which.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/node_modules/which/which.js b/node_modules/which/which.js index 70d974c18..4347f91a1 100644 --- a/node_modules/which/which.js +++ b/node_modules/which/which.js @@ -128,5 +128,8 @@ function whichSync (cmd, opt) { if (opt.all && found.length) return found + if (opt.nothrow) + return null + throw getNotFoundError(cmd) } |