[tracker/gdbus: 95/101] tracker-needle: Replace warning with a message for missing history file



commit b152cdb169037ba6655715a03fd451a8f4a8dad4
Author: Philip Van Hoof <philip codeminded be>
Date:   Mon Jan 17 13:24:47 2011 +0100

    tracker-needle: Replace warning with a message for missing history file

 src/tracker-needle/tracker-history.vala |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/tracker-needle/tracker-history.vala b/src/tracker-needle/tracker-history.vala
index ecfa642..8881332 100644
--- a/src/tracker-needle/tracker-history.vala
+++ b/src/tracker-needle/tracker-history.vala
@@ -34,7 +34,10 @@ public class Tracker.History {
 			warning ("Could not load history from file:'%s': %s", filename, e1.message);
 			return;
 		} catch (FileError e2) {
-			warning ("Could not load history from file:'%s': %s", filename, e2.message);
+			if (e2.code == 4)
+				message ("Creating new history file:'%s'", filename);
+			else
+				warning ("Could not load history from file:'%s': %s", filename, e2.message);
 			return;
 		}
 



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