mirror of
https://github.com/curl/curl.git
synced 2026-08-02 11:30:32 +03:00
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
This commit is contained in:
parent
9819984fbb
commit
c6deecd7e9
4 changed files with 17 additions and 16 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue