mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
parent
c0b10a8245
commit
c9590d5183
@ -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));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user