Fix location messages.

Refs #5825
This commit is contained in:
Gunnar Beutner 2014-03-21 16:01:32 +01:00
parent c0b10a8245
commit c9590d5183
1 changed files with 1 additions and 2 deletions

View File

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