use stderr for error output.
This commit is contained in:
parent
5389ac0ddf
commit
945feafe25
@ -150,7 +150,8 @@ int main(int argc, char *argv[])
|
|||||||
printf("Average download speed: %0.3f kbyte/sec.\n", val / 1024);
|
printf("Average download speed: %0.3f kbyte/sec.\n", val / 1024);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
printf("Error while fetching '%s' : %s\n", url, curl_easy_strerror(res));
|
fprintf(stderr, "Error while fetching '%s' : %s\n",
|
||||||
|
url, curl_easy_strerror(res));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* cleanup curl stuff */
|
/* cleanup curl stuff */
|
||||||
|
Loading…
Reference in New Issue
Block a user