summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Mazieres <dm@uun.org>2023-11-25 22:29:11 -0800
committerDavid Mazieres <dm@uun.org>2023-11-25 22:29:11 -0800
commitf040d28533d0a724ff88e30afd72e275391ebe28 (patch)
tree340a9718c0b7fafd6d32023d83b9cc0a414408d0
parent0f3d77f56b16bab47953d4683ff67ee0a222b231 (diff)
print message id of if a message causes a problem
-rw-r--r--protocol.cc6
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());
}