[LON-CAPA-cvs] cvs: loncom /lonnet/perl lonnet.pm

albertel lon-capa-cvs@mail.lon-capa.org
Fri, 23 Aug 2002 21:31:09 -0000


albertel		Fri Aug 23 17:31:09 2002 EDT

  Modified files:              
    /loncom/lonnet/perl	lonnet.pm 
  Log:
  - lonnet::get reports errors correctly now (BUG#644)
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.272 loncom/lonnet/perl/lonnet.pm:1.273
--- loncom/lonnet/perl/lonnet.pm:1.272	Fri Aug 23 09:21:36 2002
+++ loncom/lonnet/perl/lonnet.pm	Fri Aug 23 17:31:09 2002
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.272 2002/08/23 13:21:36 matthew Exp $
+# $Id: lonnet.pm,v 1.273 2002/08/23 21:31:09 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1569,6 +1569,9 @@
 
    my $rep=&reply("get:$udomain:$uname:$namespace:$items",$uhome);
    my @pairs=split(/\&/,$rep);
+   if ( $#pairs==0 && $pairs[0] =~ /^(con_lost|error|no_such_host)/i) {
+     return @pairs;
+   }
    my %returnhash=();
    my $i=0;
    foreach (@$storearr) {