diff options
author | Graham Barr <gbarr@pobox.com> | 1999-02-24 21:05:59 +0000 |
---|---|---|
committer | Graham Barr <gbarr@pobox.com> | 1999-02-24 21:05:59 +0000 |
commit | 421087e52957580161ce448388ec0df056abf425 (patch) | |
tree | 3f75fb0fefbf548c7f81bb44c6191fb4cb6bf63b | |
parent | b3371e793499ad26b8390fc5a0e53069c336bc84 (diff) | |
download | perl-libnet-421087e52957580161ce448388ec0df056abf425.tar.gz |
Added some debug to t/ftp.t to help understand failure
-rw-r--r-- | t/ftp.t | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -15,11 +15,19 @@ $ftp = Net::FTP->new($NetConfig{ftp_testhost}, Debug => 0) print "ok 1\n"; -$ftp->login('anonymous') or print "not "; +$ftp->login('anonymous') or die($ftp->message . "\n"); print "ok 2\n"; -$ftp->pwd or print "not "; +$ftp->pwd or do { + print STDERR $ftp->message,"\n"; + print "not "; +}; + print "ok 3\n"; -$ftp->quit or print "not "; +$ftp->quit or do { + print STDERR $ftp->message,"\n"; + print "not "; +}; + print "ok 4\n"; |