--- loncom/interface/Attic/londropadd.pm 2002/05/03 16:30:48 1.38 +++ loncom/interface/Attic/londropadd.pm 2002/05/03 17:45:07 1.39 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Handler to drop and add students in courses # -# $Id: londropadd.pm,v 1.38 2002/05/03 16:30:48 matthew Exp $ +# $Id: londropadd.pm,v 1.39 2002/05/03 17:45:07 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -699,7 +699,11 @@ sub menu_phase_two_drop { my ($error,%currentlist)=&get_current_classlist ($ENV{'course.'.$cid.'.domain'},$ENV{'course.'.$cid.'.num'}); if (defined($error)) { - $r->print("
ERROR:$error
"); + if ($error =~ /^No such file or directory/) { + $r->print("There are no students currently enrolled.\n"); + } else { + $r->print("
ERROR:$error
"); + } } elsif (!defined(%currentlist)) { $r->print("There are no students currently enrolled.\n"); } else {