mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-22 20:16:54 +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 {
|
||||
codem = curl_multi_perform(fetch_curl_multi, &running);
|
||||
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));
|
||||
guit->misc->warning("MiscError", curl_multi_strerror(codem));
|
||||
return;
|
||||
}
|
||||
} while (codem == CURLM_CALL_MULTI_PERFORM);
|
||||
|
@ -890,7 +890,9 @@ static nserror hotlist_load(const char *path, bool *loaded)
|
||||
corestring_lwc_html);
|
||||
if (html == NULL) {
|
||||
dom_node_unref(document);
|
||||
guit->misc->warning("TreeLoadError", "(<html> not found)");
|
||||
NSLOG(netsurf, WARNING,
|
||||
"%s (<html> not found)",
|
||||
messages_get("TreeLoadError"));
|
||||
return NSERROR_OK;
|
||||
}
|
||||
|
||||
@ -899,7 +901,9 @@ static nserror hotlist_load(const char *path, bool *loaded)
|
||||
if (body == NULL) {
|
||||
dom_node_unref(html);
|
||||
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;
|
||||
}
|
||||
|
||||
@ -909,8 +913,9 @@ static nserror hotlist_load(const char *path, bool *loaded)
|
||||
dom_node_unref(body);
|
||||
dom_node_unref(html);
|
||||
dom_node_unref(document);
|
||||
guit->misc->warning("TreeLoadError",
|
||||
"(<html>...<body>...<ul> not found.)");
|
||||
NSLOG(netsurf, WARNING,
|
||||
"%s (<html>...<body>...<ul> not found.)",
|
||||
messages_get("TreeLoadError"));
|
||||
return NSERROR_OK;
|
||||
}
|
||||
|
||||
@ -934,7 +939,9 @@ static nserror hotlist_load(const char *path, bool *loaded)
|
||||
dom_node_unref(document);
|
||||
|
||||
if (err != NSERROR_OK) {
|
||||
guit->misc->warning("TreeLoadError", "(Failed building tree.)");
|
||||
NSLOG(netsurf, WARNING,
|
||||
"%s (Failed building tree.)",
|
||||
messages_get("TreeLoadError"));
|
||||
return NSERROR_OK;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user