diff options
author | gerv%gerv.net <> | 2002-09-05 14:28:28 +0000 |
---|---|---|
committer | gerv%gerv.net <> | 2002-09-05 14:28:28 +0000 |
commit | 02ce78bfc701dfaea5c8ba94927d6496d7f8f727 (patch) | |
tree | 6d99a8b9966a0c7f81663d88f9acbd583f53914c /page.cgi | |
parent | Bug 146134 - checksetup.pl gives weird error message (diff) | |
download | bugzilla-02ce78bfc701dfaea5c8ba94927d6496d7f8f727.tar.gz bugzilla-02ce78bfc701dfaea5c8ba94927d6496d7f8f727.tar.bz2 bugzilla-02ce78bfc701dfaea5c8ba94927d6496d7f8f727.zip |
Bug 166698 - clean up the error system, which was confused and broken. Patch by gerv; r=bbaetz.
Diffstat (limited to 'page.cgi')
-rwxr-xr-x | page.cgi | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -39,19 +39,15 @@ ConnectToDatabase(); quietly_check_login(); -print "Content-Type: text/html\n\n"; - if (defined $::FORM{'id'}) { $::FORM{'id'} =~ s/[^\w-]//g; if ($pages{$::FORM{'id'}}) { + print "Content-Type: text/html\n\n"; $template->process($pages{$::FORM{'id'}}, $vars) || ThrowTemplateError($template->error()); exit; } } -$vars->{'message'} = "page_not_found"; - -$template->process("global/message.html.tmpl", $vars) - || ThrowTemplateError($template->error()); +ThrowUserError("page_not_found"); |