From 56950e44d8281fd2350db3d4a1da52bd5b06e957 Mon Sep 17 00:00:00 2001 From: iTrooz Date: Mon, 20 May 2024 00:10:34 +0200 Subject: [PATCH] fix: use renamed PatternRuntime::getEvalError() (#252) --- tests/includes/source/main.cpp | 2 +- tests/patterns/source/main.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;