about summary refs log tree commit
diff options
context:
space:
mode:
authorGraham Barr <gbarr@pobox.com>1999-02-24 21:05:59 +0000
committerGraham Barr <gbarr@pobox.com>1999-02-24 21:05:59 +0000
commit421087e52957580161ce448388ec0df056abf425 (patch)
tree3f75fb0fefbf548c7f81bb44c6191fb4cb6bf63b
parentb3371e793499ad26b8390fc5a0e53069c336bc84 (diff)
downloadperl-libnet-421087e52957580161ce448388ec0df056abf425.tar.gz
Added some debug to t/ftp.t to help understand failure
-rw-r--r--t/ftp.t14
1 files changed, 11 insertions, 3 deletions
diff --git a/t/ftp.t b/t/ftp.t
index 5e5645e..cf5aadf 100644
--- a/t/ftp.t
+++ b/t/ftp.t
@@ -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";