fix: connect error print statuscode
This commit is contained in:
		
							parent
							
								
									7299c73e0e
								
							
						
					
					
						commit
						07e8d05333
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -22,7 +22,7 @@ helpers::open_tcp_connection(char *host, char *port)
 | 
			
		|||
 | 
			
		||||
    if ((status = connect(s, res->ai_addr, res->ai_addrlen)) != 0)
 | 
			
		||||
    {
 | 
			
		||||
        LOG_ERROR << "Error opening connection";
 | 
			
		||||
        LOG_ERROR << "Error opening connection " << status;
 | 
			
		||||
        freeaddrinfo(res);
 | 
			
		||||
        return 0;
 | 
			
		||||
    }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue