feat: verbose error messages for parsing functions

This commit is contained in:
MihailRis 2026-07-23 19:59:31 +03:00
parent d3eb7a10be
commit 900f118f94
7 changed files with 58 additions and 16 deletions

View file

@ -57,3 +57,7 @@ std::string parsing_error::errorLog() const {
ss << "^";
return ss.str();
}
std::runtime_error parsing_error::toRuntimeError() const {
return std::runtime_error("parsing error: " + errorLog());
}