[rygel] media-export: Add warning if child-count fails.



commit 3dceafbd13e2a89dc28e61f449f07b98e69073e9
Author: Jens Georg <jensg openismus com>
Date:   Thu Aug 8 10:53:42 2013 +0200

    media-export: Add warning if child-count fails.

 .../rygel-media-export-leaf-query-container.vala   |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/media-export/rygel-media-export-leaf-query-container.vala 
b/src/plugins/media-export/rygel-media-export-leaf-query-container.vala
index 7edee98..083d8e9 100644
--- a/src/plugins/media-export/rygel-media-export-leaf-query-container.vala
+++ b/src/plugins/media-export/rygel-media-export-leaf-query-container.vala
@@ -58,6 +58,9 @@ internal class Rygel.MediaExport.LeafQueryContainer : QueryContainer {
             return (int) this.media_db.get_object_count_by_search_expression
                                         (this.expression, null);
         } catch (Error error) {
+            warning (_("Failed to get child count of query container: %s"),
+                     error.message);
+
             return 0;
         }
     }


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