1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

output better error detection, like when ipv6 can't resolve

This commit is contained in:
Daniel Stenberg 2005-01-15 09:21:51 +00:00
parent 4d1f3d3cd0
commit cf51f7fb65

View File

@ -375,6 +375,11 @@ sub runhttpserver {
if ( $data =~ /WE ROOLZ: (\d+)/ ) { if ( $data =~ /WE ROOLZ: (\d+)/ ) {
$pid = 0+$1; $pid = 0+$1;
} }
elsif($res == 6) {
# curl: (6) Couldn't resolve host '::1'
print "RUN: failed to resolve host\n";
return -3;
}
elsif($data || ($res != 7)) { elsif($data || ($res != 7)) {
print "RUN: Unknown server is running on port $port\n"; print "RUN: Unknown server is running on port $port\n";
return -2; return -2;