com web/master: more descriptive error message: scripts/mirror-test
| From: | Ferenc Kovacs | Date: | Fri, 15 Feb 2013 20:24:00 +0000 |
| Subject: | com web/master: more descriptive error message: scripts/mirror-test | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-15483@lists.php.net to get a copy of this message | ||
Commit: 1e58ee7e3f2501e35da0bf9b172e1defefec656a
Author: Ferenc Kovacs <tyra3l@gmail.com> Fri, 15 Feb 2013 21:24:00 +0100
Parents: fa34022553f2fdecb81990b56de0437ec5055254
Branches: master
Link: http://git.php.net/?p=web/master.git;a=commitdiff;h=1e58ee7e3f2501e35da0bf9b172e1defefec656a
Log:
more descriptive error message
Changed paths:
M scripts/mirror-test
Diff:
diff --git a/scripts/mirror-test b/scripts/mirror-test
index 58116c2..2a6d5b7 100755
--- a/scripts/mirror-test
+++ b/scripts/mirror-test
@@ -47,7 +47,7 @@ function host_has_error($hostname, $filename, &$data, &$problem,
$spoofed_hostna
// If we were unable to open the port, continue with the next mirror
if (!$fp) {
- $problem = "Unable to connect..";
+ $problem = "Unable to connect: {$errstr}({$errno}).";
return TRUE;
}