notmuch_database_add_message: Do not return a message on failure.
authorCarl Worth <cworth@cworth.org>
Tue, 27 Oct 2009 23:19:20 +0000 (16:19 -0700)
committerCarl Worth <cworth@cworth.org>
Tue, 27 Oct 2009 23:19:20 +0000 (16:19 -0700)
commit203a717d64864411eb6802c06a5a0ad1cf98e077
tree8dad5abcb17bf07eef0a5e16b99ac4c5ea69145f
parent854f82fb91ef9560259e4597d475747e948204d5
notmuch_database_add_message: Do not return a message on failure.

The recent, disastrous failure of "notmuch new" would have been
avoided with this change. The new_command function was basically
assuming that it would only get a message object on success so
wasn't destroying the message in the other cases.
database.cc
notmuch.h