Index: trunk/server/common/oursrc/execsys/ldapize.pl
===================================================================
--- trunk/server/common/oursrc/execsys/ldapize.pl	(revision 1797)
+++ trunk/server/common/oursrc/execsys/ldapize.pl	(revision 1798)
@@ -6,4 +6,19 @@
 use Net::LDAP;
 use Net::LDAP::Filter;
+
+sub report_error
+{
+    my $proto = shift;
+    my $mesg = shift;
+
+    if ($proto eq 'git') {
+        $mesg = "ERR \n  " . $mesg . "\n";
+        my $len = length($mesg)+4;
+        printf "%04x%s", $len, $mesg;
+    } else {
+        print $mesg;
+    }
+    exit 0;
+}
 
 my $url = $ARGV[0];
@@ -31,4 +46,8 @@
 
 my $vhostEntry = $mesg->pop_entry;
+if (!$vhostEntry)
+{
+    report_error($proto, "Could not find Host $hostname");
+}
 my $vhostDirectory = $vhostEntry->get_value('scriptsVhostDirectory');
 
