[gnome-boxes] Display user friendly error on medium analysis failures



commit 1766e34bc417d26000a420f5276cea522829c195
Author: Christophe Fergeau <cfergeau redhat com>
Date:   Thu Nov 8 16:10:03 2012 +0100

    Display user friendly error on medium analysis failures
    
    When trying to install from a corrupted ISO (for example a 0-byte)
    ISO, the error from libosinfo is displayed to the user, and these
    are not user friendly messages. Replace it with a user-friendly
    message, and only log the initial error to the console.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=688630

 src/wizard.vala |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/wizard.vala b/src/wizard.vala
index c72c8e3..c187132 100644
--- a/src/wizard.vala
+++ b/src/wizard.vala
@@ -288,7 +288,8 @@ private class Boxes.Wizard: Boxes.UI {
             });
         } catch (IOError.CANCELLED cancel_error) { // We did this, so no warning!
         } catch (GLib.Error error) {
-            App.app.notificationbar.display_error (error.message);
+            debug("Failed to analyze installer image: %s", error.message);
+            App.app.notificationbar.display_error (_("Failed to analyze installer media. Corrupted or incomplete media?"));
             page = WizardPage.SOURCE;
         }
     }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]