[rygel] core: Micro refactoring



commit a8e2024b82ff6f798ded6e8870585d95525607a9
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Mon Nov 9 20:12:38 2009 +0200

    core: Micro refactoring

 src/rygel/rygel-search.vala |   10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/src/rygel/rygel-search.vala b/src/rygel/rygel-search.vala
index 0e23b5a..7cc9cdc 100644
--- a/src/rygel/rygel-search.vala
+++ b/src/rygel/rygel-search.vala
@@ -170,15 +170,13 @@ internal class Rygel.Search: GLib.Object, Rygel.StateMachine {
     }
 
     private void handle_error (Error error) {
+        warning ("Failed to search in '%s': %s\n",
+                 this.container_id,
+                 error.message);
+
         if (error is ContentDirectoryError) {
-            warning ("Failed to search in '%s': %s\n",
-                     this.container_id,
-                     error.message);
             this.action.return_error (error.code, error.message);
         } else {
-            warning ("Failed to browse '%s': %s\n",
-                     this.container_id,
-                     error.message);
             this.action.return_error (701, error.message);
         }
 



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