[tracker/gdbus: 95/101] tracker-needle: Replace warning with a message for missing history file
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/gdbus: 95/101] tracker-needle: Replace warning with a message for missing history file
- Date: Tue, 18 Jan 2011 08:54:12 +0000 (UTC)
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]