[vala-tests] Improve bluez-dbus-sample



commit a0155dcb7ac8fd7edd1bc5ecdedc4f5193e6c442
Author: Michael Chudobiak <mjc avtechpulse com>
Date:   Sun Mar 29 22:30:14 2009 +0200

    Improve bluez-dbus-sample
    
    Fixes bug 575967.
---
 tests/examples/bluez-dbus-sample.vala |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/tests/examples/bluez-dbus-sample.vala b/tests/examples/bluez-dbus-sample.vala
index 24bbad1..2977131 100644
--- a/tests/examples/bluez-dbus-sample.vala
+++ b/tests/examples/bluez-dbus-sample.vala
@@ -9,8 +9,7 @@ public class BlueZDiscoverySample : GLib.Object {
     public MainLoop loop { set; get; }
 
     public void run () throws DBus.Error, GLib.Error {
-        // remove the space before SYSTEM, it is just needed for this wiki
-        this.conn = DBus.Bus.get (DBus.BusType. SYSTEM);
+        this.conn = DBus.Bus.get (DBus.BusType.SYSTEM);
 
         this.bluez = conn.get_object ("org.bluez", "/org/bluez/hci0", "org.bluez.Adapter");
 
@@ -51,7 +50,7 @@ public class BlueZDiscoverySample : GLib.Object {
         try {
             test.run ();
         } catch (DBus.Error e) {
-            error ("Failed to initialise");
+            error ("Failed to initialise: %s", e.message);
         } catch {
             error ("Dynamic method failure");
         }



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