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



commit 963bc248a79771bbe4e2da83ad9d4f49100a4e08
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 920bf45..d97b94d 100644
--- a/src/util-app.vala
+++ b/src/util-app.vala
@@ -250,7 +250,7 @@ namespace Boxes {
                     break;
             }
         } catch (GLib.Error error) {
-            GLib.error (error.message);
+            critical (error.message);
         }
 
         debug ("check_cpu_vt_capability: " + yes_no (result));
@@ -270,7 +270,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]