aboutsummaryrefslogtreecommitdiffstats
path: root/my-evolution
diff options
context:
space:
mode:
authorIain Holmes <iain@src.gnome.org>2001-09-19 04:46:50 +0800
committerIain Holmes <iain@src.gnome.org>2001-09-19 04:46:50 +0800
commitcc2f35f2b15566cbd90f673ec2f7d3caa017a988 (patch)
treef428e73b2da657778d28431954a7ca81aa9fd62a /my-evolution
parent2b78b5294a6a047a971446595c9e7f5f32f583a2 (diff)
downloadgsoc2013-evolution-cc2f35f2b15566cbd90f673ec2f7d3caa017a988.tar.gz
gsoc2013-evolution-cc2f35f2b15566cbd90f673ec2f7d3caa017a988.tar.zst
gsoc2013-evolution-cc2f35f2b15566cbd90f673ec2f7d3caa017a988.zip
Added verbose error reporting in rdf summaries
svn path=/trunk/; revision=12952
Diffstat (limited to 'my-evolution')
-rw-r--r--my-evolution/ChangeLog6
-rw-r--r--my-evolution/e-summary-rdf.c26
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;