diff options
Diffstat (limited to 'deps/npm/lib/doctor/check-ping.js')
-rw-r--r-- | deps/npm/lib/doctor/check-ping.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/deps/npm/lib/doctor/check-ping.js b/deps/npm/lib/doctor/check-ping.js index 58f14fe69e1..d8eac459fd6 100644 --- a/deps/npm/lib/doctor/check-ping.js +++ b/deps/npm/lib/doctor/check-ping.js @@ -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']) } |