[nautilus] search: print a warning when a provider errors out on a query



commit fc3c03fcc964b2f5baade671d9d812394b515245
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Fri Mar 1 17:34:43 2013 -0500

    search: print a warning when a provider errors out on a query

 libnautilus-private/nautilus-search-provider.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libnautilus-private/nautilus-search-provider.c b/libnautilus-private/nautilus-search-provider.c
index 753fe8c..682c870 100644
--- a/libnautilus-private/nautilus-search-provider.c
+++ b/libnautilus-private/nautilus-search-provider.c
@@ -150,5 +150,7 @@ nautilus_search_provider_error (NautilusSearchProvider *provider, const char *er
 {
        g_return_if_fail (NAUTILUS_IS_SEARCH_PROVIDER (provider));
 
+       g_warning ("Provider %s failed with error %s\n",
+                  G_OBJECT_TYPE_NAME (provider), error_message);
        g_signal_emit (provider, signals[ERROR], 0, error_message);
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]