sexp-parser: improve error message

This commit is contained in:
Dirk-Jan C. Binnema
2020-01-25 19:31:20 +02:00
parent 61b511dc08
commit f21ceea421
2 changed files with 8 additions and 6 deletions

View File

@ -35,7 +35,7 @@ parsing_error(size_t pos, const char* frm, ...)
if (pos == 0)
return Mu::Error(Error::Code::Parsing, "%s", msg.c_str());
else
return Mu::Error(Error::Code::Parsing, "%zu: %s", msg.c_str());
return Mu::Error(Error::Code::Parsing, "%zu: %s", pos, msg.c_str());
}
static size_t
skip_whitespace (const std::string& s, size_t pos)