Fixes #10558
Reported-by: u20221022 on github
Closes #10580
else {
/* setup the next one just before we delete this */
result = create_transfer(global, share, &added);
- if(result)
+ if(result) {
+ returncode = result;
bailout = TRUE;
+ }
}
per = del_per_transfer(per);
/* Check we have a 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;
}