summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1ee4b4e)
raw | patch | inline | side by side (parent: 1ee4b4e)
author | John 'Warthog9' Hawley <warthog9@kernel.org> | |
Sat, 30 Jan 2010 22:30:44 +0000 (23:30 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 30 Jan 2010 23:53:55 +0000 (15:53 -0800) |
Add a 3rd, optional, parameter to die_error to allow for extended error
information to be output along with what the error was.
Signed-off-by: John 'Warthog9' Hawley <warthog9@kernel.org>
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
information to be output along with what the error was.
Signed-off-by: John 'Warthog9' Hawley <warthog9@kernel.org>
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
gitweb/gitweb.perl | patch | blob | history |
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 466fa8aad49236b23bde655a6276663e5f43626b..d0c3ff258d6f03e422c7f834e03fe8524bc9ae49 100755 (executable)
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
sub die_error {
my $status = shift || 500;
my $error = shift || "Internal server error";
+ my $extra = shift;
my %http_responses = (
400 => '400 Bad Request',
<br /><br />
$status - $error
<br />
-</div>
EOF
+ if (defined $extra) {
+ print "<hr />\n" .
+ "$extra\n";
+ }
+ print "</div>\n";
+
git_footer_html();
exit;
}