mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 02:48:08 +01:00
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.
This commit is contained in:
parent
3a91df21ca
commit
81861514c9
2 changed files with 5 additions and 2 deletions
|
@ -129,6 +129,7 @@ _internal_error (const char *format, ...)
|
|||
|
||||
va_start (va_args, format);
|
||||
|
||||
fprintf (stderr, "Internal error: ");
|
||||
vfprintf (stderr, format, va_args);
|
||||
|
||||
exit (1);
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue