tests: Fixed tests not building

This commit is contained in:
WerWolv
2024-02-18 13:07:04 +01:00
parent 0e2966f10d
commit 834e5261b3
2 changed files with 3 additions and 7 deletions

View File

@@ -68,7 +68,7 @@ int main(int argc, char **argv) {
// Execute pattern
if (!runtime.executeString(patternFile.readString())) {
if (!runtime.executeString(patternFile.readString(), "<Source Code>")) {
fmt::print("Error during execution!\n");
if (const auto &hardError = runtime.getError(); hardError.has_value())