mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-22 14:31:20 +03:00
remove user warnings from hotlist load and curl poll
This commit is contained in:
parent
7c63f5f66b
commit
78aa34e5d7
@ -1325,9 +1325,9 @@ static void fetch_curl_poll(lwc_string *scheme_ignored)
|
|||||||
do {
|
do {
|
||||||
codem = curl_multi_perform(fetch_curl_multi, &running);
|
codem = curl_multi_perform(fetch_curl_multi, &running);
|
||||||
if (codem != CURLM_OK && codem != CURLM_CALL_MULTI_PERFORM) {
|
if (codem != CURLM_OK && codem != CURLM_CALL_MULTI_PERFORM) {
|
||||||
NSLOG(netsurf, WARNING, "curl_multi_perform: %i %s",
|
NSLOG(netsurf, WARNING,
|
||||||
|
"curl_multi_perform: %i %s",
|
||||||
codem, curl_multi_strerror(codem));
|
codem, curl_multi_strerror(codem));
|
||||||
guit->misc->warning("MiscError", curl_multi_strerror(codem));
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} while (codem == CURLM_CALL_MULTI_PERFORM);
|
} while (codem == CURLM_CALL_MULTI_PERFORM);
|
||||||
|
@ -890,7 +890,9 @@ static nserror hotlist_load(const char *path, bool *loaded)
|
|||||||
corestring_lwc_html);
|
corestring_lwc_html);
|
||||||
if (html == NULL) {
|
if (html == NULL) {
|
||||||
dom_node_unref(document);
|
dom_node_unref(document);
|
||||||
guit->misc->warning("TreeLoadError", "(<html> not found)");
|
NSLOG(netsurf, WARNING,
|
||||||
|
"%s (<html> not found)",
|
||||||
|
messages_get("TreeLoadError"));
|
||||||
return NSERROR_OK;
|
return NSERROR_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -899,7 +901,9 @@ static nserror hotlist_load(const char *path, bool *loaded)
|
|||||||
if (body == NULL) {
|
if (body == NULL) {
|
||||||
dom_node_unref(html);
|
dom_node_unref(html);
|
||||||
dom_node_unref(document);
|
dom_node_unref(document);
|
||||||
guit->misc->warning("TreeLoadError", "(<html>...<body> not found)");
|
NSLOG(netsurf, WARNING,
|
||||||
|
"%s (<html>...<body> not found)",
|
||||||
|
messages_get("TreeLoadError"));
|
||||||
return NSERROR_OK;
|
return NSERROR_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -909,8 +913,9 @@ static nserror hotlist_load(const char *path, bool *loaded)
|
|||||||
dom_node_unref(body);
|
dom_node_unref(body);
|
||||||
dom_node_unref(html);
|
dom_node_unref(html);
|
||||||
dom_node_unref(document);
|
dom_node_unref(document);
|
||||||
guit->misc->warning("TreeLoadError",
|
NSLOG(netsurf, WARNING,
|
||||||
"(<html>...<body>...<ul> not found.)");
|
"%s (<html>...<body>...<ul> not found.)",
|
||||||
|
messages_get("TreeLoadError"));
|
||||||
return NSERROR_OK;
|
return NSERROR_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -934,7 +939,9 @@ static nserror hotlist_load(const char *path, bool *loaded)
|
|||||||
dom_node_unref(document);
|
dom_node_unref(document);
|
||||||
|
|
||||||
if (err != NSERROR_OK) {
|
if (err != NSERROR_OK) {
|
||||||
guit->misc->warning("TreeLoadError", "(Failed building tree.)");
|
NSLOG(netsurf, WARNING,
|
||||||
|
"%s (Failed building tree.)",
|
||||||
|
messages_get("TreeLoadError"));
|
||||||
return NSERROR_OK;
|
return NSERROR_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user