summaryrefslogtreecommitdiffstats
path: root/buglist.cgi
diff options
context:
space:
mode:
authorterry%mozilla.org <>2000-02-26 04:31:49 +0100
committerterry%mozilla.org <>2000-02-26 04:31:49 +0100
commit0effcbcf51b490c93cc8467bab199d7e8bbe85fa (patch)
tree1229c06f0a6f06846ed06fbcc0518e45dac17aa9 /buglist.cgi
parent78dfe401dab8c769f8ff43f26ce0878fc9bcadaa (diff)
downloadbugzilla-0effcbcf51b490c93cc8467bab199d7e8bbe85fa.tar.gz
bugzilla-0effcbcf51b490c93cc8467bab199d7e8bbe85fa.tar.xz
Make a universal routine to report errors in forms, so that we can
have a universal (and more noticable) way of displaying them.
Diffstat (limited to 'buglist.cgi')
-rwxr-xr-xbuglist.cgi10
1 files changed, 2 insertions, 8 deletions
diff --git a/buglist.cgi b/buglist.cgi
index df6d136de..cd41ce682 100755
--- a/buglist.cgi
+++ b/buglist.cgi
@@ -82,10 +82,7 @@ sub SqlifyDate {
}
my $date = str2time($str);
if (!defined $date) {
- print "\n\n<P>The string '<tt>$str</tt>' is not a legal date.\n";
- print "<P>Please click the <B>Back</B> button and try again.\n";
- PutFooter();
- exit;
+ PuntTryAgain("The string '<tt>$str</tt>' is not a legal date.");
}
return time2str("%Y/%m/%d %H:%M:%S", $date);
}
@@ -117,10 +114,7 @@ sub Error {
if (!$serverpush) {
print "Content-type: text/html\n\n";
}
- print $str;
- print "\n<P>Please press <B>Back</B> and try again.\n";
- PutFooter();
- exit();
+ PuntTryAgain($str);
}