Skip to content

Commit

Permalink
Add a warning if it fails
Browse files Browse the repository at this point in the history
  • Loading branch information
sillydan1 committed May 5, 2022
1 parent cbaa5f0 commit 693d235
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/model_parsers/TTAParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,10 @@ TTA::GuardCollection TTAParser::ParseExternalVariablesUsedInGuardExpression(cons
for(auto& expr : expressions) {
// TODO: Parentheses fuck everything up. It should be fixed.
auto ge = ParseGuardExpression(expr);
if(!ge)
if(!ge) {
spdlog::warn("Parsing guard expression failed: {0}", expr);
continue;
}
ge->tree_apply(doesExpressionContainExternalVariable);
if(doesExpressionContainExternalVariableBool) {
// Extract the expression only. TODO: Write a more flexible parser
Expand Down

0 comments on commit 693d235

Please sign in to comment.