Screenshot instructions:
Windows
Mac
Red Hat Linux
Ubuntu
Click URL instructions:
Right-click on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)
From: Malcolm Box <mbox@us...> - 2005-09-10 00:09:31
|
Update of /cvsroot/lxr/lxr/lib/LXR In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10802/lxr/lib/LXR Modified Files: Config.pm Log Message: Fix for [ 1277254 ] --url option needs better help Produce better error messages if we can't find a configuration. Index: Config.pm =================================================================== RCS file: /cvsroot/lxr/lxr/lib/LXR/Config.pm,v retrieving revision 1.32 retrieving revision 1.33 diff -u -d -r1.32 -r1.33 --- Config.pm 21 Jul 2004 20:44:30 -0000 1.32 +++ Config.pm 10 Sep 2005 00:09:20 -0000 1.33 @@ -106,8 +106,16 @@ } } } - - die "Can't find config for $url\n" if !defined $$self{baseurl}; + + if(!defined $$self{baseurl}) { + if($url =~ m!http://.+\.!) { + die "Can't find config for $url: make sure there is a 'baseurl' line that matches in lxr.conf\n"; + } else { + # wasn't a url, so probably genxref with a bad --url parameter + die "Can't find config for $url: " . + "the --url parameter should be a URL (e.g. http://example.com/lxr) and must match a baseurl line in lxr.conf\n"; + } + } } sub allvariables { |