[tracker/backup-error: 2/2] tracker-store: Improve error reporting in restore
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/backup-error: 2/2] tracker-store: Improve error reporting in restore
- Date: Thu, 28 Apr 2011 16:49:01 +0000 (UTC)
commit 2b755a3bdcc9edd43adc8fb7a4c151e4ba1aa7cc
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]