aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTing-Wei Lan <lantw44@gmail.com>2013-07-27 17:25:39 +0800
committerLAN-TW <lantw44@gmail.com>2013-09-16 22:04:48 +0800
commit977133e84108067e9114e1c069f21d7531e08f77 (patch)
tree1a1689575a63f2f02f7034166f9b0726863d84c2
parent50212cb607e4f3d59824dd7e13bf79fa126527f4 (diff)
downloadgsoc2013-epiphany-977133e84108067e9114e1c069f21d7531e08f77.tar
gsoc2013-epiphany-977133e84108067e9114e1c069f21d7531e08f77.tar.gz
gsoc2013-epiphany-977133e84108067e9114e1c069f21d7531e08f77.tar.bz2
gsoc2013-epiphany-977133e84108067e9114e1c069f21d7531e08f77.tar.lz
gsoc2013-epiphany-977133e84108067e9114e1c069f21d7531e08f77.tar.xz
gsoc2013-epiphany-977133e84108067e9114e1c069f21d7531e08f77.tar.zst
gsoc2013-epiphany-977133e84108067e9114e1c069f21d7531e08f77.zip
Show error message in download panel if extraction failed
-rw-r--r--lib/widgets/ephy-download-widget.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/widgets/ephy-download-widget.c b/lib/widgets/ephy-download-widget.c
index d956c9e9a..3ce554809 100644
--- a/lib/widgets/ephy-download-widget.c
+++ b/lib/widgets/ephy-download-widget.c
@@ -400,6 +400,7 @@ widget_archive_error_cb (AutoarExtract *arextract,
{
const char *uri = webkit_download_get_destination (ephy_download_get_webkit_download (widget->priv->download));
char *dest = g_path_get_basename (uri);
+ char *errmsg;
LOG ("widget_archive_error_cb: error: %s", error->message);
LOG ("widget_archive_error_cb: text: %s => %s",
gtk_label_get_text (GTK_LABEL (widget->priv->text)), dest);
@@ -407,7 +408,8 @@ widget_archive_error_cb (AutoarExtract *arextract,
ephy_download_get_destination_uri (widget->priv->download), uri);
gtk_label_set_text (GTK_LABEL (widget->priv->text), dest);
ephy_download_set_destination_uri (widget->priv->download, uri);
- update_download_label_and_tooltip (widget, _("Finished (extraction failed)"));
+ errmsg = g_strdup_printf (_("Finished (extraction error: %s)"), error->message);
+ update_download_label_and_tooltip (widget, errmsg);
update_download_icon (widget);
g_free (dest);
g_error_free (error);