mirror of https://github.com/Icinga/icinga2.git
Make sure source information is always available for error messages
refs #7699
This commit is contained in:
parent
334e61037a
commit
0ab61291c6
|
@ -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()))
|
||||
|
|
Loading…
Reference in New Issue