[rygel] core: Handle errors from SearchCriteria parser
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [rygel] core: Handle errors from SearchCriteria parser
- Date: Mon, 9 Nov 2009 18:47:41 +0000 (UTC)
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]