Commit 8bb00f38 authored by Sam Thursfield's avatar Sam Thursfield

writeback: Give more info when we report an unsupported file

We now show the mime type in the error message, which is useful for
debugging.
parent 0bb5da53
......@@ -224,15 +224,16 @@ tracker_writeback_file_update_metadata (TrackerWriteback *writeback,
}
if (!retval) {
g_set_error (error,
TRACKER_DBUS_ERROR,
TRACKER_DBUS_ERROR_UNSUPPORTED,
"Module does not support writeback for %s",
mime_type);
/* module does not support writeback for this file */
g_object_unref (file_info);
g_object_unref (file);
g_set_error_literal (error,
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