mirror of
https://github.com/curl/curl.git
synced 2026-08-02 00:40:27 +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
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue