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.
1 parent fb3bbb7 commit 1c99673Copy full SHA for 1c99673
lib/audit.js
@@ -189,8 +189,8 @@ function auditCmd (args, cb) {
189
}).then((auditReport) => {
190
return audit.submitForFullReport(auditReport)
191
}).catch((err) => {
192
- if (err.statusCode === 404 || err.statusCode >= 500) {
193
- const ne = new Error(`Your configured registry (${opts.registry}) does not support audit requests.`)
+ if (err.statusCode >= 400) {
+ const ne = new Error(`Your configured registry (${opts.registry}) does not support audit requests, or the audit endpoint is temporarily unavailable.`)
194
ne.code = 'ENOAUDIT'
195
ne.wrapped = err
196
throw ne
0 commit comments