diff options
author | ache <ache@FreeBSD.org> | 1996-11-14 07:36:26 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1996-11-14 07:36:26 +0000 |
commit | 7a2c703c2bd8c73a968fc3c91c526bf9ee983215 (patch) | |
tree | 59db3fa057c766e0676229c5801ce67cc969399d /usr.bin/fetch | |
parent | e1ccbc2171919533ee83930fc66f522389b5062c (diff) | |
download | FreeBSD-src-7a2c703c2bd8c73a968fc3c91c526bf9ee983215.zip FreeBSD-src-7a2c703c2bd8c73a968fc3c91c526bf9ee983215.tar.gz |
Report net connection error via hstrerror(h_errno) now instead of
simple fact that can't connect
Diffstat (limited to 'usr.bin/fetch')
-rw-r--r-- | usr.bin/fetch/main.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/fetch/main.c b/usr.bin/fetch/main.c index 2f60719..2a569eb 100644 --- a/usr.bin/fetch/main.c +++ b/usr.bin/fetch/main.c @@ -24,7 +24,7 @@ * SUCH DAMAGE. */ -/* $Id: main.c,v 1.27 1996/11/10 14:46:50 peter Exp $ */ +/* $Id: main.c,v 1.28 1996/11/14 07:06:25 ache Exp $ */ #include <sys/types.h> #include <sys/socket.h> @@ -306,7 +306,8 @@ ftpget() if (status) errx(1, "%s: %s", host, ftpErrString(status)); else - err(1, "couldn't open FTP connection to %s.", host); + errx(1, "couldn't open FTP connection to %s: %s", + host, hstrerror(h_errno)); } /* Time to set our defaults */ |