Commit 6f0baf4f authored by Carlos Garnacho's avatar Carlos Garnacho Committed by Martyn Russell

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.
parent 59f2a856
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment