mirror of
https://github.com/git/git.git
synced 2026-01-23 15:27:19 +09: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:
commit
35d72c8eb9
@ -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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user