@@ -38,8 +38,11 @@ int main(){
sock.close();
std::cout << "Closed\n";
}
- catch(std::exception& e){
+ catch(const std::exception& e){
std::cout << e.what() << std::endl;
+ catch(...){
+ std::cout << "Unidentified exception" << std::endl;
+ }