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_paramhlp.c | |
parent | 9819984fbb04968dcec53a65ae0dfae23111dd18 (diff) |
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_paramhlp.c')
-rw-r--r-- | src/tool_paramhlp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tool_paramhlp.c b/src/tool_paramhlp.c index af47516b6..b7a8efbd2 100644 --- a/src/tool_paramhlp.c +++ b/src/tool_paramhlp.c @@ -606,7 +606,7 @@ CURLcode get_args(struct OperationConfig *config, const size_t i) if(!config->useragent) { config->useragent = my_useragent(); if(!config->useragent) { - helpf(config->global->errors, "out of memory\n"); + errorf(config->global, "out of memory\n"); result = CURLE_OUT_OF_MEMORY; } } |