mawinkle 6 년 전
부모
커밋
32e08f68de
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  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;
+		}
 	}
 }