Changeset 1821 for trunk/server/common


Ignore:
Timestamp:
Apr 29, 2011, 9:14:49 PM (13 years ago)
Author:
andersk
Message:
Revert "Useful error with unknown git vhost (Trac: #166)"

This reverts r1798.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/common/oursrc/execsys/ldapize.pl

    r1818 r1821  
    66use Net::LDAP;
    77use Net::LDAP::Filter;
    8 
    9 sub report_error
    10 {
    11     my $proto = shift;
    12     my $mesg = shift;
    13 
    14     if ($proto eq 'git') {
    15         $mesg = "ERR \n  " . $mesg . "\n";
    16         my $len = length($mesg)+4;
    17         printf "%04x%s", $len, $mesg;
    18     } else {
    19         print $mesg;
    20     }
    21     exit 0;
    22 }
    238
    249my $url = $ARGV[0];
     
    4631
    4732my $vhostEntry = $mesg->pop_entry;
    48 if (!$vhostEntry)
    49 {
    50     report_error($proto, "Could not find Host $hostname");
    51 }
    5233my $vhostDirectory = $vhostEntry->get_value('scriptsVhostDirectory');
    5334
Note: See TracChangeset for help on using the changeset viewer.