Expression class: Improved error message when resolving a variable fails.

This commit is contained in:
Eivind Kvedalen
2016-02-12 22:24:41 +01:00
committed by wmayer
parent be671259cb
commit 1da5d33996
3 changed files with 26 additions and 1 deletions

View File

@@ -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());
}
/**