Commit 245a2330 authored by aligungr's avatar aligungr

gNB executable error yaml error handling improvement

parent bc45dabb
......@@ -94,7 +94,15 @@ static void ReadOptions(int argc, char **argv)
g_options.disableCmd = true;
g_options.configFile = opt.getOption(itemConfigFile);
g_refConfig = ReadConfigYaml();
try
{
g_refConfig = ReadConfigYaml();
}
catch (const std::runtime_error &e)
{
std::cerr << "ERROR: " << e.what() << std::endl;
exit(1);
}
}
static void ReceiveCommand(app::CliMessage &msg)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment