debugging

This commit is contained in:
Jonas Zeunert
2019-08-06 22:28:18 +02:00
parent 2b3f5c4bd6
commit 786b245f75

View File

@@ -55,18 +55,19 @@ void FlippRServer::parse_server_config_file()
}
catch(const std::exception e)
{
logger().information(FCYN("server_config.json not specified!"));
Application::EXIT_USAGE;
logger().error(FCYN("server_config.json not specified!"));
exit(Application::EXIT_USAGE);
}
try
{
json = parser.parse(config).extract<Object::Ptr>();
auto parse = parser.parse(config);
json = parse.extract<Object::Ptr>();
}
catch(const std::exception e)
{
logger().information(e.what());
Application::EXIT_IOERR;
logger().error(e.what());
exit(Application::EXIT_IOERR);
}
logger().information(FCYN("Parsing server_config.json..."));