--- loncom/interface/spreadsheet/classcalc.pm 2003/06/23 19:58:18 1.10 +++ loncom/interface/spreadsheet/classcalc.pm 2003/12/05 22:24:20 1.10.2.1 @@ -1,5 +1,5 @@ # -# $Id: classcalc.pm,v 1.10 2003/06/23 19:58:18 matthew Exp $ +# $Id: classcalc.pm,v 1.10.2.1 2003/12/05 22:24:20 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -109,6 +109,10 @@ sub parent_link { sub outsheet_html { my $self = shift; my ($r) = @_; + #################################### + # Report any calculation errors # + #################################### + $r->print($self->html_report_error()); ################################### # Determine table structure ################################### @@ -271,6 +275,10 @@ sub compute { my $studentsheet = Apache::studentcalc->new ($student->{'username'},$student->{'domain'},undef); my @exportdata = $studentsheet->export_data(); + if ($studentsheet->badcalc()) { + $self->set_calcerror($sname.' : '. + $studentsheet->calcerror()); + } my $rownum = $self->get_row_number_from_key($sname); $f{'A'.$rownum} = $sname; $self->{'row_source'}->{$rownum} = $sname;