mu-server: more informative error message

This commit is contained in:
Dirk-Jan C. Binnema
2022-07-05 00:11:56 +03:00
parent 4a3069a5b5
commit d8bbeb0218

View File

@ -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()};