diff --git a/tests/includes/source/main.cpp b/tests/includes/source/main.cpp index 9bcd878..94b2e04 100644 --- a/tests/includes/source/main.cpp +++ b/tests/includes/source/main.cpp @@ -65,7 +65,7 @@ int main(int argc, char **argv) { if (!runtime.executeString(patternFile.readString(), "")) { 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; diff --git a/tests/patterns/source/main.cpp b/tests/patterns/source/main.cpp index d55b06c..4b9fe25 100644 --- a/tests/patterns/source/main.cpp +++ b/tests/patterns/source/main.cpp @@ -71,7 +71,7 @@ int main(int argc, char **argv) { if (!runtime.executeString(patternFile.readString(), "")) { 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;