| … | |
… | |
| 331 | } |
331 | } |
| 332 | } |
332 | } |
| 333 | return $return_string; |
333 | return $return_string; |
| 334 | } |
334 | } |
| 335 | |
335 | |
|
|
336 | sub errorOutput($$$) { |
|
|
337 | my ($self, $error, $details) = @_; |
|
|
338 | return |
|
|
339 | CGI::h2("Software Error"), |
|
|
340 | CGI::p(<<EOF), |
|
|
341 | WeBWorK has encountered a software error while attempting to process this problem. |
|
|
342 | It is likely that there is an error in the problem itself. |
|
|
343 | If you are a student, contact your professor to have the error corrected. |
|
|
344 | If you are a professor, please consut the error output below for more informaiton. |
|
|
345 | EOF |
|
|
346 | CGI::h3("Error messages"), CGI::blockquote(CGI::pre($error)), |
|
|
347 | CGI::h3("Error context"), CGI::blockquote(CGI::pre($details)); |
|
|
348 | } |
|
|
349 | |
|
|
350 | sub warningOutput($$) { |
|
|
351 | my ($self, $warnings) = @_; |
|
|
352 | |
|
|
353 | return |
|
|
354 | CGI::h2("Software Warnings"), |
|
|
355 | CGI::p(<<EOF), |
|
|
356 | WeBWorK has encountered warnings while attempting to process this problem. |
|
|
357 | It is likely that this indicates an error or ambiguity in the problem itself. |
|
|
358 | If you are a student, contact your professor to have the problem corrected. |
|
|
359 | If you are a professor, please consut the error output below for more informaiton. |
|
|
360 | EOF |
|
|
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: |