[Cpan-forum-commit] rev 71 - in trunk: lib/CPAN templates
svn at pti.co.il
svn at pti.co.il
Thu Feb 3 07:06:51 IST 2005
Author: gabor
Date: 2005-02-03 07:06:51 +0200 (Thu, 03 Feb 2005)
New Revision: 71
Modified:
trunk/lib/CPAN/Forum.pm
trunk/templates/internal_error.tmpl
Log:
specific message in case of missing group from the database
Modified: trunk/lib/CPAN/Forum.pm
===================================================================
--- trunk/lib/CPAN/Forum.pm 2005-02-03 05:02:04 UTC (rev 70)
+++ trunk/lib/CPAN/Forum.pm 2005-02-03 05:06:51 UTC (rev 71)
@@ -1519,6 +1519,7 @@
if (not $gr) {
return $self->internal_error(
"Invalid group $group called in $ENV{PATH_INFO}",
+ "no_such_group",
);
}
my $gid = $gr->id;
Modified: trunk/templates/internal_error.tmpl
===================================================================
--- trunk/templates/internal_error.tmpl 2005-02-03 05:02:04 UTC (rev 70)
+++ trunk/templates/internal_error.tmpl 2005-02-03 05:06:51 UTC (rev 71)
@@ -3,9 +3,18 @@
<TMPL_INCLUDE NAME="navigation.tmpl">
+<TMPL_IF no_such_group>
<p>
+We don't have such CPAN distribution in our database. Either the link that led you here
+is not correct or our database is missing this CPAN distribution. If you belive this
+one should be here, please <a href="/dist/CPAN-Forum">drop us a line</a> with the name
+of the distribution and maybe how did you get here.
+</p>
+<TMPL_ELSE>
+<p>
Something went wrong here. The webmaster will be informed and will try to take action.
</p>
+</TMPL_IF>
<TMPL_INCLUDE NAME="footer.tmpl">
More information about the Cpan-forum-commit
mailing list