transport-helper: report errors properly
[gitweb.git] / transport-helper.c
index cb3ef7d38e475480a5d81ce6077c4c87ea09a318..96081cc392efcf6656fd6eade959bd13961fe8b0 100644 (file)
@@ -54,7 +54,7 @@ static int recvline_fh(FILE *helper, struct strbuf *buffer)
        if (strbuf_getline(buffer, helper, '\n') == EOF) {
                if (debug)
                        fprintf(stderr, "Debug: Remote helper quit.\n");
-               exit(128);
+               die("Reading from remote helper failed");
        }
 
        if (debug)