Mercurial > dovecot > original-hg > dovecot-1.2
changeset 8613:37e74d43ff26 HEAD
Improved "Transaction log corrupted unexpectedly" error message.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 12 Jan 2009 10:44:13 -0500 |
parents | 3ee12ca9e2c4 |
children | fc3bd6608c90 |
files | src/lib-index/mail-transaction-log-file.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-index/mail-transaction-log-file.c Mon Jan 12 10:43:55 2009 -0500 +++ b/src/lib-index/mail-transaction-log-file.c Mon Jan 12 10:44:13 2009 -0500 @@ -913,7 +913,9 @@ if (trans_size < sizeof(*hdr) || *offset - file->buffer_offset + trans_size > file->buffer->used) { mail_transaction_log_file_set_corrupted(file, - "Transaction log corrupted unexpectedly"); + "Transaction log corrupted unexpectedly at " + "%"PRIuUOFF_T": Invalid size %u (type=%x)", + *offset, trans_size, hdr->type); return -1; } *offset += trans_size;