[tracker/tracker-0.10] writeback: Set uniformly the same error when writeback modules don't handle the file
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-0.10] writeback: Set uniformly the same error when writeback modules don't handle the file
- Date: Tue, 8 Nov 2011 15:07:01 +0000 (UTC)
commit 6f0baf4f513fe06703d84d67947f1d61d3988ea8
Author: Carlos Garnacho <carlos lanedo com>
Date: Tue Nov 8 13:23:56 2011 +0100
writeback: Set uniformly the same error when writeback modules don't handle the file
Fixes NB#286656. TRACKER_DBUS_ERROR_UNSUPPORTED is used in miner/writeback
communication when writeback doesn't handle a given RDF type, which is
considered non-critical on the miner side. So use the same error code when
a module refuses to handle a mimetype.
src/tracker-writeback/tracker-writeback-file.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/tracker-writeback/tracker-writeback-file.c b/src/tracker-writeback/tracker-writeback-file.c
index aa85697..66b7d3c 100644
--- a/src/tracker-writeback/tracker-writeback-file.c
+++ b/src/tracker-writeback/tracker-writeback-file.c
@@ -214,8 +214,8 @@ tracker_writeback_file_update_metadata (TrackerWriteback *writeback,
g_object_unref (file_info);
g_set_error_literal (error,
- G_IO_ERROR,
- G_IO_ERROR_FAILED,
+ TRACKER_DBUS_ERROR,
+ TRACKER_DBUS_ERROR_UNSUPPORTED,
"Module does not support writeback for this file");
return FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]