Make sure source information is always available for error messages

refs #7699
This commit is contained in:
Gunnar Beutner 2014-11-21 18:35:59 +01:00
parent 334e61037a
commit 0ab61291c6
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ Value Expression::Evaluate(const Object::Ptr& context, DebugHint *dhint) const
return DoEvaluate(context, dhint);
} catch (const std::exception& ex) {
if (dynamic_cast<const ConfigError *>(&ex) || boost::get_error_info<boost::errinfo_nested_exception>(ex))
if (boost::get_error_info<boost::errinfo_nested_exception>(ex))
throw;
else
BOOST_THROW_EXCEPTION(ConfigError("Error while evaluating expression: " + String(ex.what()))