From ce0f190b4b9b6ae9eeb6ca4c1da71ac1d0215df1 Mon Sep 17 00:00:00 2001 From: Manuel Pégourié-Gonnard Date: Mon, 5 Apr 2010 08:09:13 +0000 Subject: Better "no result" message. git-svn-id: svn://tug.org/texlive/trunk@17705 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf/scripts/tetex/texdoctk.pl | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'Master') diff --git a/Master/texmf/scripts/tetex/texdoctk.pl b/Master/texmf/scripts/tetex/texdoctk.pl index 6f4673d3781..595ec4315d6 100755 --- a/Master/texmf/scripts/tetex/texdoctk.pl +++ b/Master/texmf/scripts/tetex/texdoctk.pl @@ -802,8 +802,13 @@ sub srchstr { destroy $srchentry; $srchflag=0; if (scalar @reslist == 0) { - &popmsg(0,"Search for $string: no matches found.\n". - "Try `texdoc $string' in a command line.",$cmdframe); + &popmsg(0, ($srchtype == 0 ? 'Database' : 'File'). + " search for $string: no matches found.\n". + "You may want to try a ". + ($srchtype == 0 ? 'File' : 'Databse') . " search.\n\n". + "If nothing else works, CTAN offers an online search form:\n". + "http://ctan.org/search.html\n", + $cmdframe); } else { &tpslct(-1, $string, @reslist); } -- cgit v1.2.3