diff options
Diffstat (limited to 'my-evolution')
-rw-r--r-- | my-evolution/ChangeLog | 6 | ||||
-rw-r--r-- | my-evolution/e-summary-rdf.c | 26 |
2 files changed, 26 insertions, 6 deletions
diff --git a/my-evolution/ChangeLog b/my-evolution/ChangeLog index db5fc2aabb..0f05fe2bbe 100644 --- a/my-evolution/ChangeLog +++ b/my-evolution/ChangeLog @@ -1,5 +1,11 @@ 2001-09-18 Iain Holmes <iain@ximian.com> + * e-summary-rdf.c (display_doc): Verbose error reporting. + (read_callback): Same. + (open_callback): Same. + +2001-09-18 Iain Holmes <iain@ximian.com> + * e-summary-weather.c (e_summary_weather_add_location): Append the weather locations so they are in the right order. diff --git a/my-evolution/e-summary-rdf.c b/my-evolution/e-summary-rdf.c index 712b19c76e..2f04d18c84 100644 --- a/my-evolution/e-summary-rdf.c +++ b/my-evolution/e-summary-rdf.c @@ -269,14 +269,18 @@ display_doc (RDF *r) GString *html; html = g_string_new ("<dl><dt><img src=\"ico-rdf.png\" align=\"middle\" " - "width=\"48\" height=\"48\"><b>"); + "width=\"48\" height=\"48\">"); if (r->cache == NULL) { - char *tmp_utf; + char *tmp_utf, *str; + + str = g_strdup_printf ("<b>%s:</b><br>%s", _("Error downloading RDF"), + r->uri); + tmp_utf = e_utf8_from_locale_string (str); + g_free (str); - tmp_utf = e_utf8_from_locale_string (_("There was an error downloading news feed")); g_string_append (html, tmp_utf); - g_string_append (html, "</b></dt>"); + g_string_append (html, "</dt>"); g_free (tmp_utf); } else { tree_walk (r->cache->root, r, html); @@ -354,10 +358,15 @@ read_callback (GnomeVFSAsyncHandle *handle, RDF *r) { if (result != GNOME_VFS_OK && result != GNOME_VFS_ERROR_EOF) { + char *str; if (r->html) { g_free (r->html); } - r->html = e_utf8_from_locale_string (_("<b>Error downloading RDF</b>")); + + str = g_strdup_printf ("<b>%s:</b><br>%s", _("Error downloading RDF"), + r->uri); + r->html = e_utf8_from_locale_string (str); + g_free (str); e_summary_draw (r->summary); r->handle = NULL; @@ -383,7 +392,12 @@ open_callback (GnomeVFSAsyncHandle *handle, RDF *r) { if (result != GNOME_VFS_OK) { - r->html = e_utf8_from_locale_string (_("<b>Error downloading RDF</b>")); + char *str; + + str = g_strdup_printf ("<b>%s:</b><br>%s", _("Error downloading RDF"), + r->uri); + r->html = e_utf8_from_locale_string (str); + g_free (str); display_doc (r); return; |