[rygel] core: Handle errors from SearchCriteria parser



commit 5394ef488e426fe13dfd4f8242c1c25ac356c0c2
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Mon Nov 9 20:09:52 2009 +0200

    core: Handle errors from SearchCriteria parser

 src/rygel/rygel-search.vala |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/rygel/rygel-search.vala b/src/rygel/rygel-search.vala
index 8c242ed..f7b770e 100644
--- a/src/rygel/rygel-search.vala
+++ b/src/rygel/rygel-search.vala
@@ -126,6 +126,10 @@ internal class Rygel.Search: GLib.Object, Rygel.StateMachine {
         var parser = new Rygel.SearchCriteriaParser (this.search_criteria);
         yield parser.run ();
 
+        if (parser.err != null) {
+            throw parser.err;
+        }
+
         var results = yield container.search (parser.expression,
                                               this.index,
                                               this.requested_count,



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