Make config error messages friendler.

Refs #5825
This commit is contained in:
Gunnar Beutner 2014-03-21 15:58:13 +01:00
parent c286c25183
commit c0b10a8245
2 changed files with 1 additions and 3 deletions

View File

@ -64,8 +64,6 @@ static String LoadAppType(const String& typeSpec)
static bool LoadConfigFiles(const String& appType, ValidationType validate)
{
CONTEXT("Loading configuration files");
ConfigCompilerContext::GetInstance()->Reset();
if (g_AppParams.count("config") > 0) {

View File

@ -191,7 +191,7 @@ void ConfigCompiler::Compile(void)
yyparse(this);
} catch (const ConfigError& ex) {
ShowCodeFragment(std::cout, ex.GetDebugInfo());
ConfigCompilerContext::GetInstance()->AddMessage(true, DiagnosticInformation(ex));
ConfigCompilerContext::GetInstance()->AddMessage(true, ex.what());
} catch (const std::exception& ex) {
ConfigCompilerContext::GetInstance()->AddMessage(true, DiagnosticInformation(ex));
}