summaryrefslogtreecommitdiff
path: root/uclient-fetch.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-05-06 14:47:38 +0200
committerFelix Fietkau <nbd@openwrt.org>2014-05-06 14:47:38 +0200
commit43be3a3e32f9eb32358beaa3934623c664ae7c12 (patch)
tree3e9a9e65c2a8ba4abaee918148975114801d7cb3 /uclient-fetch.c
parentcba6b0a007362ab5743044abea88186d2a5abd77 (diff)
downloaduclient-43be3a3e32f9eb32358beaa3934623c664ae7c12.tar.gz
fetch: print error messages on http error codes
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'uclient-fetch.c')
-rw-r--r--uclient-fetch.c2
1 files changed, 2 insertions, 0 deletions
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;