Skip to content

Commit b7ad775

Browse files
vanishcodeclaudiahdz
authored andcommitted
fix: wrong npm doctor command result
1 parent 9a2e2e7 commit b7ad775

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/doctor/check-ping.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ function checkPing (cb) {
66
tracker.info('checkPing', 'Pinging registry')
77
ping({}, true, (err, pong) => {
88
if (err && err.code && err.code.match(/^E\d{3}$/)) {
9-
return cb(null, [err.code.substr(1)])
9+
return cb(null, [err.code.substr(1), 'failed'])
1010
} else {
1111
cb(null, [200, 'ok'])
1212
}

0 commit comments

Comments
 (0)