[Lunar-commits] <lconnman> connmanmanager: change the hashtable printing

Samuel samuel.verstraete at gmail.com
Thu Aug 18 09:31:25 CEST 2011


commit 6ac2f00f7d50da03f0c2ac55200aa64db9ec5ded
Author: Samuel <samuel.verstraete at gmail.com>
Date:   Thu Aug 18 09:31:25 2011 +0200

    connmanmanager: change the hashtable printing
---
 src/connmanmanager.vala |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/connmanmanager.vala b/src/connmanmanager.vala
index 42ae1f5..63c3597 100644
--- a/src/connmanmanager.vala
+++ b/src/connmanmanager.vala
@@ -31,7 +31,7 @@ public static string get_state() {
     return connmanManager.get_state();
   } catch (IOError e) {
     stderr.printf (e.message +"\n");
-    return null;
+    return e.message;
   }
 }
 
@@ -40,7 +40,7 @@ public static Service[] get_services() {
     return connmanManager.get_services();
   } catch (IOError e) {
     stderr.printf (e.message +"\n");
-    return null;
+    return new Service[0];
   }
 }
 


More information about the Lunar-commits mailing list