Skip to content

Commit 5b5aefb

Browse files
committed
Add print for #571
1 parent d73732e commit 5b5aefb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/wget.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ static int wget(const char* url, const char* filepath, wget_progress_cb progress
2121
req.url = url;
2222
ret = cli.send(&req, &resp);
2323
if (ret != 0) {
24-
fprintf(stderr, "request error: %d\n", ret);
24+
fprintf(stderr, "HEAD request error: %d\n", ret);
2525
return ret;
2626
}
2727
printd("%s", resp.Dump(true, false).c_str());
@@ -85,7 +85,7 @@ static int wget(const char* url, const char* filepath, wget_progress_cb progress
8585
};
8686
ret = cli.send(&req, &resp);
8787
if (ret != 0) {
88-
fprintf(stderr, "request error: %d\n", ret);
88+
fprintf(stderr, "GET request error: %d\n", ret);
8989
goto error;
9090
}
9191
goto success;
@@ -99,7 +99,7 @@ static int wget(const char* url, const char* filepath, wget_progress_cb progress
9999
printd("%s", req.Dump(true, false).c_str());
100100
ret = cli.send(&req, &resp);
101101
if (ret != 0) {
102-
fprintf(stderr, "request error: %d\n", ret);
102+
fprintf(stderr, "GET Range: bytes=%ld-%ld request error: %d\n", from, to, ret);
103103
goto error;
104104
}
105105
printd("%s", resp.Dump(true, false).c_str());

0 commit comments

Comments
 (0)