Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions portsyncd/portsyncd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,15 @@ int main(int argc, char **argv)
}
catch (const std::exception& e)
{
cerr << "Exception \"" << e.what() << "\" had been thrown in deamon" << endl;
cerr << "Exception \"" << e.what() << "\" was thrown in daemon" << endl;
return EXIT_FAILURE;
}
catch (...)
{
cerr << "Exception was thrown in daemon" << endl;
return EXIT_FAILURE;
}


return 1;
}
Expand Down Expand Up @@ -224,7 +230,7 @@ void handlePortConfigFile(ProducerStateTable &p, string file, bool warm)
if (!infile.is_open())
{
usage();
throw "Port configuration file not found!";
throw runtime_error("Port configuration file not found!");
}

list<string> header = {"name", "lanes", "alias", "speed", "autoneg", "fec"};
Expand Down