Skip to content

Commit

Permalink
Fix npm#5200: only show warning when canceling npm init
Browse files Browse the repository at this point in the history
  • Loading branch information
evanlucas authored and domenic committed May 11, 2014
1 parent 65f4cb3 commit 7ca9e7e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})
}

0 comments on commit 7ca9e7e

Please sign in to comment.