Skip to content

Commit

Permalink
fix: wrong npm doctor command result
Browse files Browse the repository at this point in the history
  • Loading branch information
vanishcode authored and claudiahdz committed Jun 24, 2020
1 parent 9a2e2e7 commit b7ad775
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/doctor/check-ping.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function checkPing (cb) {
tracker.info('checkPing', 'Pinging registry')
ping({}, true, (err, pong) => {
if (err && err.code && err.code.match(/^E\d{3}$/)) {
return cb(null, [err.code.substr(1)])
return cb(null, [err.code.substr(1), 'failed'])
} else {
cb(null, [200, 'ok'])
}
Expand Down

0 comments on commit b7ad775

Please sign in to comment.