diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 466fa8aad49236b23bde655a6276663e5f43626b..d0c3ff258d6f03e422c7f834e03fe8524bc9ae49 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -3392,6 +3392,7 @@ sub git_footer_html {
sub die_error {
my $status = shift || 500;
my $error = shift || "Internal server error";
+ my $extra = shift;
my %http_responses = (
400 => '400 Bad Request',
@@ -3406,8 +3407,13 @@ sub die_error {
$status - $error
-
EOF
+ if (defined $extra) {
+ print "