[tracker/gdbus] tracker-needle: Replace warning with a message for missing history file
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/gdbus] tracker-needle: Replace warning with a message for missing history file
- Date: Mon, 17 Jan 2011 12:26:25 +0000 (UTC)
commit 857bab11768856671ab8909bc601901457a535a7
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]