[tracker] writeback: Set uniformly the same error when writeback modules don't handle the file
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] writeback: Set uniformly the same error when writeback modules don't handle the file
- Date: Tue, 8 Nov 2011 12:30:09 +0000 (UTC)
commit f23ca55f85ddb1b3199df66fe874756bfcc570c3
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 687eb80..8218d51 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);
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]