mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-01 19:04:39 +02:00
parent
c286c25183
commit
c0b10a8245
@ -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) {
|
||||
|
@ -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));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user