Expression class: Improved error message when resolving a variable fails.
This commit is contained in:
@@ -989,7 +989,7 @@ const Property * VariableExpression::getProperty() const
|
||||
if (prop)
|
||||
return prop;
|
||||
else
|
||||
throw ExpressionError(std::string("Property '") + var.getPropertyName() + std::string("' not found."));
|
||||
throw Expression::Exception(var.resolveErrorString().c_str());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user