[system] / trunk / webwork2 / lib / WeBWorK / ContentGenerator.pm Repository:
ViewVC logotype

Diff of /trunk/webwork2/lib/WeBWorK/ContentGenerator.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 736 Revision 737
331 } 331 }
332 } 332 }
333 return $return_string; 333 return $return_string;
334} 334}
335 335
336sub errorOutput($$$) {
337 my ($self, $error, $details) = @_;
338 return
339 CGI::h2("Software Error"),
340 CGI::p(<<EOF),
341WeBWorK has encountered a software error while attempting to process this problem.
342It is likely that there is an error in the problem itself.
343If you are a student, contact your professor to have the error corrected.
344If you are a professor, please consut the error output below for more informaiton.
345EOF
346 CGI::h3("Error messages"), CGI::blockquote(CGI::pre($error)),
347 CGI::h3("Error context"), CGI::blockquote(CGI::pre($details));
348}
349
350sub warningOutput($$) {
351 my ($self, $warnings) = @_;
352
353 return
354 CGI::h2("Software Warnings"),
355 CGI::p(<<EOF),
356WeBWorK has encountered warnings while attempting to process this problem.
357It is likely that this indicates an error or ambiguity in the problem itself.
358If you are a student, contact your professor to have the problem corrected.
359If you are a professor, please consut the error output below for more informaiton.
360EOF
361 CGI::h3("Warning messages"),
362 CGI::blockquote(CGI::pre($warnings)),
363 ;
364}
365
336################################################################################ 366################################################################################
337# Generic versions of template escapes 367# Generic versions of template escapes
338################################################################################ 368################################################################################
339 369
340# Reminder: here are the template functions currently defined: 370# Reminder: here are the template functions currently defined:

Legend:
Removed from v.736  
changed lines
  Added in v.737

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9