Be a bit more verbose and capture Boost exceptions in StandardCompiler

This commit is contained in:
Alex Beregszaszi
2017-04-24 11:34:02 +01:00
parent a9f4215720
commit e24c35bce0
+5 -1
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");
}
}