[tracker-miners/wip/carlosg/batches-and-resources: 15/31] libtracker-miner: Do not warn over other harmless errors on failed crawl
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miners/wip/carlosg/batches-and-resources: 15/31] libtracker-miner: Do not warn over other harmless errors on failed crawl
- Date: Fri, 11 Dec 2020 10:55:03 +0000 (UTC)
commit 30aff8c01f19f9e37d439812df7d1b370dcbef8e
Author: Carlos Garnacho <carlosg gnome org>
Date: Sun Dec 6 13:03:49 2020 +0100
libtracker-miner: Do not warn over other harmless errors on failed crawl
Some errors like "permission denied" or "file not found" may happen across
regular usage, do not warn about those errors.
src/libtracker-miner/tracker-file-notifier.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/libtracker-miner/tracker-file-notifier.c b/src/libtracker-miner/tracker-file-notifier.c
index de703774f..5eae3f71d 100644
--- a/src/libtracker-miner/tracker-file-notifier.c
+++ b/src/libtracker-miner/tracker-file-notifier.c
@@ -488,7 +488,9 @@ crawler_get_cb (TrackerCrawler *crawler,
g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED);
if (error &&
- !g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED)) {
+ !g_error_matches (error, G_IO_ERROR, G_IO_ERROR_CANCELLED) &&
+ !g_error_matches (error, G_IO_ERROR, G_IO_ERROR_NOT_FOUND) &&
+ !g_error_matches (error, G_IO_ERROR, G_IO_ERROR_PERMISSION_DENIED)) {
gchar *uri;
uri = g_file_get_uri (directory);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]