diff --git a/lib/mu-server.cc b/lib/mu-server.cc index b4ca4b52..e1f62d3c 100644 --- a/lib/mu-server.cc +++ b/lib/mu-server.cc @@ -400,7 +400,7 @@ Server::Private::add_handler(const Parameters& params) const auto docid_res{store().add_message(path)}; if (!docid_res) - throw Error(Error::Code::Store, "failed to add message to store"); + throw docid_res.error(); const auto docid{docid_res.value()};