mirror of
https://github.com/curl/curl.git
synced 2025-09-16 09:02:40 +03:00
tool_operate: propagate error codes for missing URL after --next
Fixes #10558 Reported-by: u20221022 on github Closes #10580
This commit is contained in:
parent
2e3da51550
commit
60e13311f4
|
@ -2472,8 +2472,10 @@ static CURLcode serial_transfers(struct GlobalConfig *global,
|
||||||
else {
|
else {
|
||||||
/* setup the next one just before we delete this */
|
/* setup the next one just before we delete this */
|
||||||
result = create_transfer(global, share, &added);
|
result = create_transfer(global, share, &added);
|
||||||
if(result)
|
if(result) {
|
||||||
|
returncode = result;
|
||||||
bailout = TRUE;
|
bailout = TRUE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
per = del_per_transfer(per);
|
per = del_per_transfer(per);
|
||||||
|
@ -2515,7 +2517,8 @@ static CURLcode transfer_per_config(struct GlobalConfig *global,
|
||||||
|
|
||||||
/* Check we have a url */
|
/* Check we have a url */
|
||||||
if(!config->url_list || !config->url_list->url) {
|
if(!config->url_list || !config->url_list->url) {
|
||||||
helpf(global->errors, "no URL specified!\n");
|
helpf(global->errors, "(%d) no URL specified!\n",
|
||||||
|
CURLE_FAILED_INIT);
|
||||||
return CURLE_FAILED_INIT;
|
return CURLE_FAILED_INIT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user