use stderr for error output.

This commit is contained in:
Gunter Knauf 2009-09-10 18:36:06 +00:00
parent 5389ac0ddf
commit 945feafe25
1 changed files with 2 additions and 1 deletions

View File

@ -150,7 +150,8 @@ int main(int argc, char *argv[])
printf("Average download speed: %0.3f kbyte/sec.\n", val / 1024);
} 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 */