mu: improve error numbers

Ensure they match what mu expects.
This commit is contained in:
Dirk-Jan C. Binnema
2023-04-11 20:34:31 +03:00
parent 8bd6fe23c4
commit 8762ac27dc
3 changed files with 57 additions and 44 deletions

View File

@ -103,7 +103,7 @@ output_sexp_stdout(const Sexp& sexp, Server::OutputFlags flags)
static void
report_error(const Mu::Error& err) noexcept
{
output_sexp_stdout(Sexp(":error"_sym, static_cast<size_t>(err.code()),
output_sexp_stdout(Sexp(":error"_sym, Error::error_number(err.code()),
":message"_sym, err.what()),
Server::OutputFlags::Flush);
}