From 59a86f5ea854475b365679bd8d7604e50b724783 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Fri, 20 Jan 2023 14:44:54 +0300 Subject: Fix unexpected 'unable to read HTTP response status line' fetch error --- bpkg/fetch.hxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bpkg/fetch.hxx') diff --git a/bpkg/fetch.hxx b/bpkg/fetch.hxx index 78e77a7..6578f0d 100644 --- a/bpkg/fetch.hxx +++ b/bpkg/fetch.hxx @@ -156,7 +156,9 @@ namespace bpkg // whether stderr is redirected by checking process::in_efd. // // In contrast to start_fetch() always fetch to stdout, which can be read by - // the caller from the specified stream. + // the caller from the specified stream. On HTTP errors (e.g., 404) this + // stream may contain the error description returned by the server and the + // process may exit with 0 code. // // If the quiet argument is true, then, if stderr is redirected, minimize // the amount of diagnostics printed by the fetch program by only printing -- cgit v1.1