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

albertel lon-capa-cvs@mail.lon-capa.org
Thu, 22 Jun 2006 14:48:43 -0000


albertel		Thu Jun 22 10:48:43 2006 EDT

  Modified files:              
    /loncom/lonnet/perl	lonnet.pm 
  Log:
  - returning complete error message
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.755 loncom/lonnet/perl/lonnet.pm:1.756
--- loncom/lonnet/perl/lonnet.pm:1.755	Thu Jun 22 10:30:14 2006
+++ loncom/lonnet/perl/lonnet.pm	Thu Jun 22 10:48:40 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.755 2006/06/22 14:30:14 albertel Exp $
+# $Id: lonnet.pm,v 1.756 2006/06/22 14:48:40 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -285,11 +285,10 @@
 
 sub error {
     my ($result) = @_;
-    if ($result =~ /^(con_lost|no_such_host|error: (\d+) )/) {
+    if ($result =~ /^(con_lost|no_such_host|error: (\d+) (.*))/) {
 	if ($2 == 2) { return undef; }
 	return $1;
     }
-    &logthis("accepting $result");
     return undef;
 }