summaryrefslogtreecommitdiff
path: root/desktop/hotlist.c
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/hotlist.c')
-rw-r--r--desktop/hotlist.c17
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;
}