From: dms Date: Mon, 18 Dec 2000 13:38:00 +0000 (+0000) Subject: Remove &ERROR() since it's done by WARN. X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=2264291cb30b08041ac93a96694f37db6c181f15;p=infobot.git Remove &ERROR() since it's done by WARN. git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk@209 c11ca15a-4712-0410-83d8-924469b57eb5 --- diff --git a/blootbot/src/Net.pl b/blootbot/src/Net.pl index fb1959c..967bb90 100644 --- a/blootbot/src/Net.pl +++ b/blootbot/src/Net.pl @@ -22,10 +22,7 @@ sub ftpGet { ### 'BlockSize' => 1024, # ??? ); - if ($@) { - &ERROR("FTP: $@."); - return; - } + return if ($@); # login. if ($ftp->login()) { @@ -110,10 +107,7 @@ sub ftpList { &status("FTP: opening connection to $host.") if ($verbose_ftp); my $ftp = Net::FTP->new($host,'Timeout'=>60); - if ($@) { -### &ERROR("FTP: $@."); - return; - } + return if ($@); # login. if ($ftp->login()) {