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



commit 518b34d52cc12349e0bf158b1e84c1d2fbac124a
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 d331fb0..77635e9 100644
--- a/src/libtracker-db/tracker-db-journal.c
+++ b/src/libtracker-db/tracker-db-journal.c
@@ -624,7 +624,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]