]> granicus.if.org Git - icinga2/commitdiff
Fix location messages.
authorGunnar Beutner <gunnar.beutner@netways.de>
Fri, 21 Mar 2014 15:01:32 +0000 (16:01 +0100)
committerGunnar Beutner <gunnar.beutner@netways.de>
Fri, 21 Mar 2014 15:01:32 +0000 (16:01 +0100)
Refs #5825

lib/config/config_parser.yy

index 80e92e04b578ee9712071f7001388c24ba410ecc..976f0d4b72ebfe90d26699fa168f993784a56547 100644 (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));
        }