--- loncom/homework/inputtags.pm 2003/05/09 22:24:05 1.101 +++ loncom/homework/inputtags.pm 2003/05/23 07:04:44 1.102 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # input definitons # -# $Id: inputtags.pm,v 1.101 2003/05/09 22:24:05 albertel Exp $ +# $Id: inputtags.pm,v 1.102 2003/05/23 07:04:44 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -251,7 +251,9 @@ sub finalizeawards { if ($result eq '' ) { foreach $award (@_) { if ($award eq 'NO_RESPONSE') {$result='NO_RESPONSE'; last;} } } - + if ($result eq '' ) { + foreach $award (@_) { if ($award eq 'TOO_LONG') {$result='TOO_LONG'; last;}} + } if ($result eq '' ) { foreach $award (@_) { if ($award eq 'UNIT_FAIL' || @@ -336,6 +338,12 @@ sub decideoutput { } elsif ($award eq 'MISSING_ANSWER') { $message = 'Some parts were not submitted'; $button = 1; + } elsif ($award eq 'ERROR') { + $message = 'An error occured while trying to grade answer.'; + $button = 1; + } elsif ($award eq 'TOO_LONG') { + $message = "The submitted answer was too long."; + $button=1; } elsif ($award eq 'WANTED_NUMERIC') { $message = "This question expects a numeric answer"; $button=1;