core: Micro refactoring
authorZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Mon, 9 Nov 2009 18:12:38 +0000 (20:12 +0200)
committerZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Mon, 9 Nov 2009 18:12:38 +0000 (20:12 +0200)
src/rygel/rygel-search.vala

index 0e23b5a..7cc9cdc 100644 (file)
@@ -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);
         }