mirror of
https://github.com/git/git.git
synced 2026-03-01 18:24:00 +01:00
Merge branch 'kt/http-backend-errors' into next
Some error messages from the http transport layer lacked the terminating newline, which has been corrected. * kt/http-backend-errors: http-backend: write newlines to stderr when responding with errors
This commit is contained in:
@@ -144,8 +144,10 @@ static NORETURN void not_found(struct strbuf *hdr, const char *err, ...)
|
||||
end_headers(hdr);
|
||||
|
||||
va_start(params, err);
|
||||
if (err && *err)
|
||||
if (err && *err) {
|
||||
vfprintf(stderr, err, params);
|
||||
putc('\n', stderr);
|
||||
}
|
||||
va_end(params);
|
||||
exit(0);
|
||||
}
|
||||
@@ -160,8 +162,10 @@ static NORETURN void forbidden(struct strbuf *hdr, const char *err, ...)
|
||||
end_headers(hdr);
|
||||
|
||||
va_start(params, err);
|
||||
if (err && *err)
|
||||
if (err && *err) {
|
||||
vfprintf(stderr, err, params);
|
||||
putc('\n', stderr);
|
||||
}
|
||||
va_end(params);
|
||||
exit(0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user