[tracker/sam/diagrams: 6/9] writeback: Improve error when writeback fails due to missing module
- From: Sam Thursfield <sthursfield src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/sam/diagrams: 6/9] writeback: Improve error when writeback fails due to missing module
- Date: Wed, 24 Dec 2014 01:28:08 +0000 (UTC)
commit 6d509d71ee93940a098aa4bd70e8fcf2dfdf2dcc
Author: Sam Thursfield <sam afuera me uk>
Date: Tue Dec 23 16:15:09 2014 +0000
writeback: Improve error when writeback fails due to missing module
src/tracker-writeback/tracker-writeback.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/src/tracker-writeback/tracker-writeback.c b/src/tracker-writeback/tracker-writeback.c
index c80f240..5bc2180 100644
--- a/src/tracker-writeback/tracker-writeback.c
+++ b/src/tracker-writeback/tracker-writeback.c
@@ -597,10 +597,16 @@ handle_method_call_perform_writeback (TrackerController *controller,
g_task_run_in_thread (task, io_writeback_job);
g_object_unref (task);
} else {
+ char *rdf_types_string;
+ rdf_types_string = g_strjoinv (", ", rdf_types);
g_dbus_method_invocation_return_error (invocation,
TRACKER_DBUS_ERROR,
TRACKER_DBUS_ERROR_UNSUPPORTED,
- "No module for rdf types");
+ "None of %i writeback modules matched any of the "
+ "given RDF types: %s",
+ g_hash_table_size (priv->modules),
+ rdf_types_string);
+ g_free (rdf_types_string);
}
g_free (rdf_types);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]