mawinkle hace 6 años
padre
commit
32e08f68de
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  1. 4 1
      server.cpp

+ 4 - 1
server.cpp

@@ -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;
+		}
 	}
 }