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:
Junio C Hamano 2026-01-13 10:43:40 -08:00
commit 35d72c8eb9

View File

@ -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);
}