From 10eb3c1edcf3f8a5972ea22d43dd23d0df460323 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Mon, 12 Dec 2005 13:51:52 +0100 Subject: * improved the error reporting on a failed update --- UpdateManager/UpdateManager.py | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) (limited to 'UpdateManager/UpdateManager.py') diff --git a/UpdateManager/UpdateManager.py b/UpdateManager/UpdateManager.py index 3795f398..cc8e1f88 100644 --- a/UpdateManager/UpdateManager.py +++ b/UpdateManager/UpdateManager.py @@ -471,8 +471,25 @@ class UpdateManager(SimpleGladeApp): dialog = gtk.MessageDialog(self.window_main, 0, gtk.MESSAGE_ERROR, gtk.BUTTONS_OK,"") dialog.set_markup("%s"%\ - _("Error updating")) - dialog.format_secondary_text("%s" % msg) + _("Error reloading")) + dialog.format_secondary_text(_("A error occured during the package " + "list reload. Please see the below " + "information for details what went " + "wrong.")) + dialog.set_border_width(6) + dialog.set_size_request(width=500,height=-1) + scroll = gtk.ScrolledWindow() + scroll.set_size_request(-1,200) + scroll.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC) + text = gtk.TextView() + text.set_editable(False) + text.set_cursor_visible(False) + text.set_wrap_mode(gtk.WRAP_WORD) + buf = text.get_buffer() + buf.set_text("%s" % msg) + scroll.add(text) + dialog.vbox.pack_start(scroll) + scroll.show_all() dialog.run() dialog.destroy() self.fillstore() -- cgit v1.2.3