From: Felix Fietkau Date: Tue, 6 May 2014 12:47:38 +0000 (+0200) Subject: fetch: print error messages on http error codes X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=43be3a3e32f9eb32358beaa3934623c664ae7c12;p=oweals%2Fuclient.git fetch: print error messages on http error codes Signed-off-by: Felix Fietkau --- diff --git a/uclient-fetch.c b/uclient-fetch.c index 7aa60ea..9672e07 100644 --- a/uclient-fetch.c +++ b/uclient-fetch.c @@ -120,6 +120,8 @@ static void header_done_cb(struct uclient *cl) break; default: + if (!quiet) + fprintf(stderr, "HTTP error %d\n", cl->status_code); request_done(cl); error_ret = 8; break;