diff options
author | Evan Lucas <evanlucas@me.com> | 2014-05-07 07:37:17 +0400 |
---|---|---|
committer | Domenic Denicola <domenic@domenicdenicola.com> | 2014-05-12 01:50:24 +0400 |
commit | 7ca9e7eca5f9a5e14d5b68859fef62a8e6a89cd3 (patch) | |
tree | 5f555949fbbaecce8619cba82c1428b22a2ddad2 /lib | |
parent | 65f4cb39f27d55a068f98404c35b41e371dec945 (diff) |
Fix #5200: only show warning when canceling `npm init`
Diffstat (limited to 'lib')
-rw-r--r-- | lib/init.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/init.js b/lib/init.js index 74cd806f6..8ae991f5b 100644 --- a/lib/init.js +++ b/lib/init.js @@ -32,6 +32,10 @@ function init (args, cb) { log.resume() log.silly('package data', data) log.info('init', 'written successfully') + if (er && er.message === 'canceled') { + log.warn('init', 'canceled') + return cb(null, data) + } cb(er, data) }) } |