[gnome-boxes] util-app: Don't abort on inability to read /proc files



commit b9a413fe1478473bec698e258418fb5f657a26d7
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Wed May 21 19:28:13 2014 +0100

    util-app: Don't abort on inability to read /proc files
    
    Calling GLib.error() implies a call to abort() so its better if we
    display the error with GLib.critical().
    
    https://bugzilla.gnome.org/show_bug.cgi?id=729345

 src/util-app.vala |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/util-app.vala b/src/util-app.vala
index 82f4fcd..7d52148 100644
--- a/src/util-app.vala
+++ b/src/util-app.vala
@@ -251,7 +251,7 @@ namespace Boxes {
                     break;
             }
         } catch (GLib.Error error) {
-            GLib.error (error.message);
+            critical (error.message);
         }
 
         debug ("check_cpu_vt_capability: " + yes_no (result));
@@ -271,7 +271,7 @@ namespace Boxes {
                     break;
             }
         } catch (GLib.Error error) {
-            GLib.error (error.message);
+            critical (error.message);
         }
 
         debug ("check_module_kvm_loaded: " + yes_no (result));


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