Be a bit more verbose and capture Boost exceptions in StandardCompiler

This commit is contained in:
Alex Beregszaszi 2017-04-23 19:43:06 +01:00
parent a9f4215720
commit e24c35bce0

View File

@ -413,9 +413,13 @@ Json::Value StandardCompiler::compile(Json::Value const& _input)
{
return compileInternal(_input);
}
catch (Exception const& _exception)
{
return formatFatalError("InternalCompilerError", "Internal exception in StandardCompiler::compileInternal: " + boost::diagnostic_information(_exception));
}
catch (...)
{
return formatFatalError("InternalCompilerError", "Internal exception in StandardCompiler::compilerInternal");
return formatFatalError("InternalCompilerError", "Internal exception in StandardCompiler::compileInternal");
}
}