projects
/
project
/
uclient.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fetch: print error messages on http error codes
[project/uclient.git]
/
uclient-fetch.c
diff --git
a/uclient-fetch.c
b/uclient-fetch.c
index
7aa60ea
..
9672e07
100644
(file)
--- 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;