[tracker/binary-log-2: 22/44] Add more detailed GError for calling _next()



commit 305c3997dae0deffc85d4ed0532b96183c79b9cc
Author: Martyn Russell <martyn lanedo com>
Date:   Tue Jan 5 17:25:48 2010 +0000

    Add more detailed GError for calling _next()

 src/libtracker-db/tracker-db-journal.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-db/tracker-db-journal.c b/src/libtracker-db/tracker-db-journal.c
index 92b47e9..8552f93 100644
--- a/src/libtracker-db/tracker-db-journal.c
+++ b/src/libtracker-db/tracker-db-journal.c
@@ -625,7 +625,8 @@ tracker_db_journal_reader_next (GError **error)
 
 		if (reader.end - reader.current < sizeof (guint32)) {
 			g_set_error (error, TRACKER_DB_JOURNAL_ERROR, 0, 
-			             "Damaged journal entry, < sizeof(guint32) at start/end of journal");
+			             "Damaged journal entry, %d < sizeof(guint32) at start/end of journal",
+			             (gint) (reader.end - reader.current));
 			return FALSE;
 		}
 



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