int processUserInput()
{
- int userInput;
+ int userInput = 0;
std::cin >> userInput;
if (std::cin.fail())
{
{
std::cout << "main exception : " << e.what() << std::endl;
}
+ catch (...)
+ {
+ std::cout << "main exception : unknown" << std::endl;
+ }
std::cout << "Stopping the server" << std::endl;
}