aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-05-25 07:51:06 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-05-25 07:51:06 +0000
commit9a33561e80ae1d76877751ceec5b323985050390 (patch)
treeb954ac01f54041dc337ca626025e88559652ff71 /src
parent88229a0f2ab259ca7c42096eef188a4264aa03e9 (diff)
make one call instead of two
Diffstat (limited to 'src')
-rw-r--r--src/main.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/main.c b/src/main.c
index c1090dca8..0c7e964f7 100644
--- a/src/main.c
+++ b/src/main.c
@@ -3439,8 +3439,9 @@ operate(struct Configurable *config, int argc, char *argv[])
}
#else
if((res!=CURLE_OK) && config->showerror) {
+ fprintf(config->errors, "curl: (%d) %s\n", (int)res,
+ errorbuffer[0]? errorbuffer: curl_easy_strerror(res));
if(CURLE_SSL_CACERT == res) {
- fprintf(config->errors, "curl: (%d) %s\n\n", res, errorbuffer);
#define CURL_CA_CERT_ERRORMSG1 \
"More details here: http://curl.haxx.se/docs/sslcerts.html\n\n" \
"curl performs SSL certificate verification by default, using a \"bundle\"\n" \
@@ -3460,9 +3461,6 @@ operate(struct Configurable *config, int argc, char *argv[])
CURL_CA_CERT_ERRORMSG1,
CURL_CA_CERT_ERRORMSG2 );
}
- else
- fprintf(config->errors, "curl: (%d) %s\n", res,
- errorbuffer[0]? errorbuffer: curl_easy_strerror(res));
}
#endif