From f7e58fa74d9008731b86c82f75251ca295056cf1 Mon Sep 17 00:00:00 2001
From: Gar <gar+gh@danger.computer>
Date: Wed, 16 Mar 2022 08:51:37 -0700
Subject: [PATCH] fix: remove "bug the author" message from package 404

---
 lib/utils/error-message.js                             | 7 +------
 tap-snapshots/test/lib/utils/error-message.js.test.cjs | 4 ----
 2 files changed, 1 insertion(+), 10 deletions(-)

diff --git a/lib/utils/error-message.js b/lib/utils/error-message.js
index 4d584346d0f3b..5fa361efcd3da 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 || [])]
diff --git a/tap-snapshots/test/lib/utils/error-message.js.test.cjs b/tap-snapshots/test/lib/utils/error-message.js.test.cjs
index 3b82e3c055de6..6316f04fd0998 100644
--- a/tap-snapshots/test/lib/utils/error-message.js.test.cjs
+++ b/tap-snapshots/test/lib/utils/error-message.js.test.cjs
@@ -155,10 +155,6 @@ Object {
       "",
       "'yolo' is not in this registry.",
     ],
-    Array [
-      "404",
-      "You should bug the author to publish it (or use the name yourself!)",
-    ],
     Array [
       "404",
       String(