diff options
Diffstat (limited to 'deps/npm/lib/ls.js')
-rw-r--r-- | deps/npm/lib/ls.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/deps/npm/lib/ls.js b/deps/npm/lib/ls.js index 842b612cc..194aae635 100644 --- a/deps/npm/lib/ls.js +++ b/deps/npm/lib/ls.js @@ -63,6 +63,8 @@ function ls (args, silent, cb) { } console.log(out) + if (args.length && !data._found) process.exitCode = 1 + // if any errors were found, then complain and exit status 1 if (lite.problems && lite.problems.length) { er = lite.problems.join('\n') |