mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-01 01:41:23 +02:00
- helpers: simplify: add url to curl error log
Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -1780,8 +1780,7 @@ bool getUrl(std::string& url, std::string& answer, std::string userAgent, unsign
|
|||||||
|
|
||||||
if (httpres != 0 || answer.empty())
|
if (httpres != 0 || answer.empty())
|
||||||
{
|
{
|
||||||
dprintf(DEBUG_NORMAL, "getUrl: error msg: %s\n", cerror);
|
dprintf(DEBUG_NORMAL, "getUrl: error: %s (%s)\n", cerror, url.c_str());
|
||||||
dprintf(DEBUG_NORMAL, "getUrl: error url: %s\n", url.c_str());
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1829,8 +1828,7 @@ bool downloadUrl(std::string url, std::string file, std::string userAgent, unsig
|
|||||||
|
|
||||||
if (httpres != 0)
|
if (httpres != 0)
|
||||||
{
|
{
|
||||||
dprintf(DEBUG_NORMAL, "curl error msg: %s\n", cerror);
|
dprintf(DEBUG_NORMAL, "curl error: %s (%s)\n", cerror, url.c_str());
|
||||||
dprintf(DEBUG_NORMAL, "curl error url: %s\n", url.c_str());
|
|
||||||
unlink(file.c_str());
|
unlink(file.c_str());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user