Skip to content

Commit

Permalink
fix(registry): print both 111 and 199 warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
zkat committed Jun 7, 2017
1 parent d243889 commit 2f8c201
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/fetchers/registry/check-warning-header.js
Expand Up @@ -23,9 +23,11 @@ function checkWarnings (res, registry, opts) {
BAD_HOSTS.set(registry, true)
if (warnings['199'] && warnings['199'].message.match(/ENOTFOUND/)) {
opts.log.warn('registry', `Using stale data from ${registry} because the host is inaccessible -- are you offline?`)
} else if (warnings['199']) {
}
if (warnings['199']) {
opts.log.warn('registry', `Unexpected warning for ${registry}: ${warnings['199'].message}`)
} else if (warnings['111']) {
}
if (warnings['111']) {
// 111 Revalidation failed -- we're using stale data
opts.log.warn(
'registry',
Expand Down

0 comments on commit 2f8c201

Please sign in to comment.