[tracker/tracker-0.10] tracker-store: Improve error reporting in restore
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-0.10] tracker-store: Improve error reporting in restore
- Date: Thu, 5 May 2011 12:58:15 +0000 (UTC)
commit 35e700755785edde6773e05d202d5e666baaee6f
Author: Philip Van Hoof <philip codeminded be>
Date: Thu Apr 28 18:48:05 2011 +0200
tracker-store: Improve error reporting in restore
src/tracker-store/tracker-backup.vala | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/tracker-store/tracker-backup.vala b/src/tracker-store/tracker-backup.vala
index f09ed6b..a98e725 100644
--- a/src/tracker-store/tracker-backup.vala
+++ b/src/tracker-store/tracker-backup.vala
@@ -77,6 +77,10 @@ public class Tracker.Backup : Object {
var journal = File.new_for_uri (journal_uri);
+ if (journal == null || journal.get_path() == null) {
+ throw new DataBackupError.INVALID_URI ("'" + journal_uri + "' is not a valid uri");
+ }
+
var notifier = (Status) (Tracker.DBus.get_object (typeof (Status)));
var busy_callback = notifier.get_callback ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]