[tracker] libtracker-data: Propagate TTL parsing errors up
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] libtracker-data: Propagate TTL parsing errors up
- Date: Thu, 10 Feb 2011 15:36:09 +0000 (UTC)
commit 0b3a1952fbc067326e05e0542bd9f747c1016b92
Author: Philip Van Hoof <philip codeminded be>
Date: Wed Feb 9 16:22:02 2011 +0100
libtracker-data: Propagate TTL parsing errors up
src/libtracker-data/tracker-data-manager.c | 10 +++-------
1 files changed, 3 insertions(+), 7 deletions(-)
---
diff --git a/src/libtracker-data/tracker-data-manager.c b/src/libtracker-data/tracker-data-manager.c
index c4f2df6..c3a98e9 100644
--- a/src/libtracker-data/tracker-data-manager.c
+++ b/src/libtracker-data/tracker-data-manager.c
@@ -1595,13 +1595,10 @@ load_ontology_file_from_path (const gchar *ontology_path,
TrackerTurtleReader *reader;
GError *ttl_error = NULL;
- /* TODO: Investigate whether or not we can propagate ttl_error instead
- * of using critical */
-
reader = tracker_turtle_reader_new (ontology_path, &ttl_error);
+
if (ttl_error) {
- g_critical ("Turtle parse error: %s", ttl_error->message);
- g_error_free (ttl_error);
+ g_propagate_error (error, ttl_error);
return;
}
@@ -1634,8 +1631,7 @@ load_ontology_file_from_path (const gchar *ontology_path,
g_object_unref (reader);
if (ttl_error) {
- g_critical ("Turtle parse error: %s", ttl_error->message);
- g_error_free (ttl_error);
+ g_propagate_error (error, ttl_error);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]