mirror of
https://github.com/fangfufu/httpdirfs.git
synced 2024-09-27 20:51:55 +02:00
improved error messages
This commit is contained in:
parent
39820e3814
commit
84f2ebc970
@ -177,6 +177,7 @@ void Link_set_stat(Link* this_link, CURL *curl)
|
||||
this_link->type = LINK_FILE;
|
||||
}
|
||||
} else {
|
||||
fprintf(stderr, "Link_set_stat(): HTTP %ld.\n", http_resp);
|
||||
this_link->type = LINK_INVALID;
|
||||
}
|
||||
}
|
||||
@ -291,9 +292,8 @@ LinkTable *LinkTable_new(const char *url)
|
||||
Too Many Requests\n", url);
|
||||
sleep(HTTP_429_WAIT);
|
||||
} else if (http_resp != HTTP_OK) {
|
||||
fprintf(stderr, "link.c: LinkTable_new(): cannot retrieve the base \
|
||||
URL, URL: %s, HTTP %ld\n", url, http_resp);
|
||||
|
||||
fprintf(stderr, "link.c: LinkTable_new(): cannot retrieve URL: %s, \
|
||||
HTTP %ld\n", url, http_resp);
|
||||
LinkTable_free(linktbl);
|
||||
curl_easy_cleanup(curl);
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user