We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
npm doctor
1 parent 9a2e2e7 commit b7ad775Copy full SHA for b7ad775
lib/doctor/check-ping.js
@@ -6,7 +6,7 @@ function checkPing (cb) {
6
tracker.info('checkPing', 'Pinging registry')
7
ping({}, true, (err, pong) => {
8
if (err && err.code && err.code.match(/^E\d{3}$/)) {
9
- return cb(null, [err.code.substr(1)])
+ return cb(null, [err.code.substr(1), 'failed'])
10
} else {
11
cb(null, [200, 'ok'])
12
}
0 commit comments