From bae290e718fa2fd06296021964335191b7962302 Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Sun, 31 Dec 2023 07:49:56 +0200 Subject: [PATCH] server: perform_move: throw when message not found Warning & continuing is not the right thing... --- lib/mu-server.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mu-server.cc b/lib/mu-server.cc index 473952e9..8e6203a0 100644 --- a/lib/mu-server.cc +++ b/lib/mu-server.cc @@ -831,7 +831,7 @@ Server::Private::perform_move(Store::Id docid, for (auto& [id,path]: id_paths) { auto idmsg{store().find_message(id)}; if (!idmsg) - mu_warning("failed to find message for id {}", id); + throw Error{Error::Code::Xapian, "cannot find message for id {}", id}; auto sexpstr = "(:update " + msg_sexp_str(*idmsg, id, {}); /* note, the :move t thing is a hint to the frontend that it