From: Dan Fandrich Date: Fri, 4 Apr 2008 18:45:37 +0000 (+0000) Subject: Give a hint as to why a url_fopen failed. X-Git-Tag: cares-1_5_2~171 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aa2a54c10a19bce9a9b73d92a9712a7616405e6f;p=curl Give a hint as to why a url_fopen failed. --- diff --git a/docs/examples/fopen.c b/docs/examples/fopen.c index 7c50b0cc6..44d2498a0 100644 --- a/docs/examples/fopen.c +++ b/docs/examples/fopen.c @@ -488,7 +488,7 @@ main(int argc, char *argv[]) handle = url_fopen(url, "r"); if(!handle) { - printf("couldn't url_fopen()\n"); + printf("couldn't url_fopen() %s\n", url); fclose(outf); return 2; } @@ -514,7 +514,7 @@ main(int argc, char *argv[]) handle = url_fopen("testfile", "r"); if(!handle) { - printf("couldn't url_fopen()\n"); + printf("couldn't url_fopen() testfile\n"); fclose(outf); return 2; } @@ -539,7 +539,7 @@ main(int argc, char *argv[]) handle = url_fopen("testfile", "r"); if(!handle) { - printf("couldn't url_fopen()\n"); + printf("couldn't url_fopen() testfile\n"); fclose(outf); return 2; }