Skip to content

Commit 8911119

Browse files
committed
Improve link initialization error reporting (Closes #207)
1 parent 5dd032a commit 8911119

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

src/link.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -280,16 +280,13 @@ static void LinkTable_uninitialised_fill(LinkTable *linktbl)
280280
*/
281281
int n_running = curl_multi_perform_once();
282282

283-
/*
284-
* If no handles are running but u > 0, we have an error
285-
* and we must break to avoid infinite loop.
286-
*/
287283
if (n_running == 0) {
288-
lprintf(error, "Some links failed to initialize.\n");
289284
for (int i = 0; i < linktbl->num; i++) {
290285
Link *this_link = linktbl->links[i];
291286
if (this_link->type == LINK_UNINITIALISED_FILE
292287
|| this_link->type == LINK_UNINITIALISED_DIR) {
288+
lprintf(error, "Failed to initialize: %s\n",
289+
this_link->f_url);
293290
this_link->type = LINK_INVALID;
294291
}
295292
}

0 commit comments

Comments
 (0)