[rygel] core: Assert on regex error
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] core: Assert on regex error
- Date: Tue, 21 Feb 2012 13:49:17 +0000 (UTC)
commit 85029bd4b28a41297999b696c1a7c43c6b3ce38a
Author: Jens Georg <mail jensge org>
Date: Thu Feb 16 13:35:06 2012 +0200
core: Assert on regex error
src/rygel/rygel-item-creator.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/rygel/rygel-item-creator.vala b/src/rygel/rygel-item-creator.vala
index 348208d..80f1642 100644
--- a/src/rygel/rygel-item-creator.vala
+++ b/src/rygel/rygel-item-creator.vala
@@ -62,7 +62,7 @@ internal class Rygel.ItemCreator: GLib.Object, Rygel.StateMachine {
this.title_regex = new Regex (pattern,
RegexCompileFlags.OPTIMIZE,
RegexMatchFlags.NOTEMPTY);
- } catch (Error error) { } /* ignore */
+ } catch (Error error) { assert_not_reached (); }
}
public async void run () {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]