From cc2f35f2b15566cbd90f673ec2f7d3caa017a988 Mon Sep 17 00:00:00 2001 From: Iain Holmes Date: Tue, 18 Sep 2001 20:46:50 +0000 Subject: Added verbose error reporting in rdf summaries svn path=/trunk/; revision=12952 --- my-evolution/ChangeLog | 6 ++++++ 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,3 +1,9 @@ +2001-09-18 Iain Holmes + + * e-summary-rdf.c (display_doc): Verbose error reporting. + (read_callback): Same. + (open_callback): Same. + 2001-09-18 Iain Holmes * e-summary-weather.c (e_summary_weather_add_location): Append the 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 ("
"); + "width=\"48\" height=\"48\">"); if (r->cache == NULL) { - char *tmp_utf; + char *tmp_utf, *str; + + str = g_strdup_printf ("%s:
%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, "
"); + g_string_append (html, ""); 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 (_("Error downloading RDF")); + + str = g_strdup_printf ("%s:
%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 (_("Error downloading RDF")); + char *str; + + str = g_strdup_printf ("%s:
%s", _("Error downloading RDF"), + r->uri); + r->html = e_utf8_from_locale_string (str); + g_free (str); display_doc (r); return; -- cgit v1.2.3