Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Jan 2026 17:27:57 +0000
From:      Wolfram Schneider <wosch@FreeBSD.org>
To:        doc-committers@FreeBSD.org, dev-commits-doc-all@FreeBSD.org
Subject:   git: 4358ffc3e8 - main - ports.cgi: fix warnings
Message-ID:  <696e699d.3a47a.45b9171d@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by wosch:

URL: https://cgit.FreeBSD.org/doc/commit/?id=4358ffc3e8b7bd92f909c92a340e99614c451b97

commit 4358ffc3e8b7bd92f909c92a340e99614c451b97
Author:     Wolfram Schneider <wosch@FreeBSD.org>
AuthorDate: 2026-01-19 17:27:49 +0000
Commit:     Wolfram Schneider <wosch@FreeBSD.org>
CommitDate: 2026-01-19 17:27:49 +0000

    ports.cgi: fix warnings
---
 website/content/en/cgi/ports.cgi | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/website/content/en/cgi/ports.cgi b/website/content/en/cgi/ports.cgi
index 4260a89b37..919f5830e7 100755
--- a/website/content/en/cgi/ports.cgi
+++ b/website/content/en/cgi/ports.cgi
@@ -485,9 +485,8 @@ sub check_input {
             )
           )
         {
-            &warn(
-"unknown search type ``$stype'', use `all', `text', `name', 'requires', or `maintainer'\n"
-            );
+            print "unknown search type, use `all', `text', `name', 'requires', or `maintainer'\n";
+            warn "unknown search type ``", escapeHTML($stype), "'', use `all', `text', `name', 'requires', or `maintainer'\n" if $debug >= 1;
             &exit(0);
         }
     }


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?696e699d.3a47a.45b9171d>