mirror of
https://github.com/curl/curl.git
synced 2026-07-23 14:37:24 +03:00
output better error detection, like when ipv6 can't resolve
This commit is contained in:
parent
4d1f3d3cd0
commit
cf51f7fb65
1 changed files with 5 additions and 0 deletions
|
|
@ -375,6 +375,11 @@ sub runhttpserver {
|
|||
if ( $data =~ /WE ROOLZ: (\d+)/ ) {
|
||||
$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)) {
|
||||
print "RUN: Unknown server is running on port $port\n";
|
||||
return -2;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue