diff options
author | Daniel Stenberg <daniel@haxx.se> | 2019-12-09 16:15:37 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2019-12-10 10:03:33 +0100 |
commit | c6deecd7e9ea7dd10de0934f8ec30952648aba2d (patch) | |
tree | d0d784efffbb6eeb0f06afca3f1e779ad928d0f5 /src/tool_main.c | |
parent | 9819984fbb04968dcec53a65ae0dfae23111dd18 (diff) | |
download | curl-c6deecd7e9ea7dd10de0934f8ec30952648aba2d.tar.gz |
curl: use errorf() better
Change series of error outputs to use errorf().
Only errors that are due to mistakes in command line option usage should
use helpf(), other types of errors in the tool should rather use
errorf().
Closes #4691
Diffstat (limited to 'src/tool_main.c')
-rw-r--r-- | src/tool_main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tool_main.c b/src/tool_main.c index 4803adbb3..06923c332 100644 --- a/src/tool_main.c +++ b/src/tool_main.c @@ -166,17 +166,17 @@ static CURLcode main_init(struct GlobalConfig *config) config->first->global = config; } else { - helpf(stderr, "error retrieving curl library information\n"); + errorf(config, "error retrieving curl library information\n"); free(config->first); } } else { - helpf(stderr, "error initializing curl library\n"); + errorf(config, "error initializing curl library\n"); free(config->first); } } else { - helpf(stderr, "error initializing curl\n"); + errorf(config, "error initializing curl\n"); result = CURLE_FAILED_INIT; } |