diff options
author | Carl Worth <cworth@cworth.org> | 2009-10-28 12:46:50 -0700 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2009-10-28 13:13:23 -0700 |
commit | 81861514c9a86350d24322c1de80b284bd2c1033 (patch) | |
tree | 0ade82ab5aed8a3ba09a18dba1afcc83312ef291 /message.cc | |
parent | 3a91df21caddd952fe9a3e3ba8128e781a3f6ec5 (diff) |
Tweak formatting of internal error messages.
Was neglecting to print the phrase "Internal error: " before, and for
the duplicate message-ID error it's nice to actually see the duplicate
IDs.
Diffstat (limited to 'message.cc')
-rw-r--r-- | message.cc | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -276,8 +276,10 @@ notmuch_message_get_thread_id (notmuch_message_t *message) strncmp ((*i).c_str (), _find_prefix ("thread"), strlen (_find_prefix ("thread"))) == 0) { - INTERNAL_ERROR ("Message with document ID of %d has duplicate thread IDs.\n", - message->doc_id); + INTERNAL_ERROR ("Message %s has duplicate thread IDs: %s and %s\n", + notmuch_message_get_message_id (message), + message->thread_id, + (*i).c_str () + 1); } #endif |