diff options
author | Vincent Sanders <vince@kyllikki.org> | 2019-11-05 00:07:06 +0000 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2019-11-05 00:07:06 +0000 |
commit | 78aa34e5d761c2597f24ebba89c69ac6fda2f3a8 (patch) | |
tree | 333148b1546c20eb134af6495a4185705ab032e4 /desktop | |
parent | 7c63f5f66bde003c2e661f2914b74872cb5a5b8b (diff) | |
download | netsurf-78aa34e5d761c2597f24ebba89c69ac6fda2f3a8.tar.gz netsurf-78aa34e5d761c2597f24ebba89c69ac6fda2f3a8.tar.bz2 |
remove user warnings from hotlist load and curl poll
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/hotlist.c | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/desktop/hotlist.c b/desktop/hotlist.c index 4bdd7c8cb..4daaaed71 100644 --- a/desktop/hotlist.c +++ b/desktop/hotlist.c @@ -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; } |