diff options
author | David Mazieres <dm@uun.org> | 2023-11-25 22:29:11 -0800 |
---|---|---|
committer | David Mazieres <dm@uun.org> | 2023-11-25 22:29:11 -0800 |
commit | f040d28533d0a724ff88e30afd72e275391ebe28 (patch) | |
tree | 340a9718c0b7fafd6d32023d83b9cc0a414408d0 | |
parent | 0f3d77f56b16bab47953d4683ff67ee0a222b231 (diff) |
print message id of if a message causes a problem
-rw-r--r-- | protocol.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/protocol.cc b/protocol.cc index 35580cb..91859da 100644 --- a/protocol.cc +++ b/protocol.cc @@ -789,8 +789,10 @@ muchsync_server(sqlite3 *db, notmuch_db &nm) } } catch (exception &e) { - cerr << e.what() << '\n'; - cout << "550 " << e.what() << '\n'; + string msg (e.what()); + msg += " [id:" + hi.message_id + "]\n"; + cerr << msg; + cout << "550 " << msg; } unlink(path.c_str()); } |