fix: use renamed PatternRuntime::getEvalError() (#252)

This commit is contained in:
iTrooz
2024-05-20 00:10:34 +02:00
committed by GitHub
parent ed42452fc1
commit 56950e44d8
2 changed files with 2 additions and 2 deletions

View File

@@ -71,7 +71,7 @@ int main(int argc, char **argv) {
if (!runtime.executeString(patternFile.readString(), "<Source Code>")) {
fmt::print("Error during execution!\n");
if (const auto &hardError = runtime.getError(); hardError.has_value())
if (const auto &hardError = runtime.getEvalError(); hardError.has_value())
fmt::print("Hard error: {}:{} - {}\n\n", hardError->line, hardError->column, hardError->message);
return EXIT_FAILURE;