diff options
author | Gar <gar+gh@danger.computer> | 2022-03-16 18:51:37 +0300 |
---|---|---|
committer | nlf <nlf@github.com> | 2022-03-17 20:57:03 +0300 |
commit | f7e58fa74d9008731b86c82f75251ca295056cf1 (patch) | |
tree | f4fc5ee0c7da88a16fb0b029c4b81ed4ad9523fa /lib | |
parent | f0c6e86ca5920baa85355af3ea50ed13f7429a10 (diff) |
fix: remove "bug the author" message from package 404
Diffstat (limited to 'lib')
-rw-r--r-- | lib/utils/error-message.js | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/utils/error-message.js b/lib/utils/error-message.js index 4d584346d..5fa361efc 100644 --- a/lib/utils/error-message.js +++ b/lib/utils/error-message.js @@ -199,12 +199,7 @@ module.exports = (er, npm) => { const valResult = nameValidator(pkg) - if (valResult.validForNewPackages) { - detail.push([ - '404', - 'You should bug the author to publish it (or use the name yourself!)', - ]) - } else { + if (!valResult.validForNewPackages) { detail.push(['404', 'This package name is not valid, because', '']) const errorsArray = [...(valResult.errors || []), ...(valResult.warnings || [])] |