version 1.521, 2008/03/17 09:53:36
|
version 1.523, 2008/03/24 18:22:36
|
Line 116 sub annotate {
|
Line 116 sub annotate {
|
# the number of times requested by the caller. |
# the number of times requested by the caller. |
# If we still have a proble, no text is appended to the |
# If we still have a proble, no text is appended to the |
# output and we set some global variables. |
# output and we set some global variables. |
# to indicate to the caller an SSI error occured. |
# to indicate to the caller an SSI error occurred. |
# All of this is supposed to deal with the issues described |
# All of this is supposed to deal with the issues described |
# in LonCAPA BZ 5631 see: |
# in LonCAPA BZ 5631 see: |
# http://bugs.lon-capa.org/show_bug.cgi?id=5631 |
# http://bugs.lon-capa.org/show_bug.cgi?id=5631 |
Line 132 sub annotate {
|
Line 132 sub annotate {
|
# On success, returns the rendered resource identified by the resource parameter. |
# On success, returns the rendered resource identified by the resource parameter. |
# Side Effects: |
# Side Effects: |
# The following global variables can be set: |
# The following global variables can be set: |
# ssi_error - If an unrecoverable error occured this becomes true. |
# ssi_error - If an unrecoverable error occurred this becomes true. |
# It is up to the caller to initialize this to false |
# It is up to the caller to initialize this to false |
# if desired. |
# if desired. |
# ssi_last_error_resource - If an unrecoverable error occured, this is the value |
# ssi_last_error_resource - If an unrecoverable error occurred, this is the value |
# of the resource that could not be rendered by the ssi |
# of the resource that could not be rendered by the ssi |
# call. |
# call. |
# ssi_last_error - The error string fetched from the ssi response |
# ssi_last_error - The error string fetched from the ssi response |
Line 2092 ENDPART
|
Line 2092 ENDPART
|
# |
# |
|
|
if ($ssi_error) { |
if ($ssi_error) { |
|
|
|
my $helpurl = &Apache::loncommon::top_nav_help('Helpdesk'); |
my $end_page = &Apache::loncommon::end_page(); |
my $end_page = &Apache::loncommon::end_page(); |
$r->print(<<ERROR_END); |
$r->print(' |
<br /> |
|
<h2>An unrecoverable error occured:</h2> |
|
<p> |
|
I was not able to render one of the print resources ($ssi_last_error_resource) |
|
due to an unrecoverable error communicating with a server: |
|
<br /> |
<br /> |
$ssi_last_error; |
<h2>'.&mt('An unrecoverable network error occurred:').'</h2> |
<br /> |
|
</p> |
|
<p> |
<p> |
I recommend that you try printing again later as this may mean the server was just |
'.&mt('One of the resources ([_1]) you chose to print could not be rendered due to an unrecoverable error when communicating with a server:',$ssi_last_error_resource).' |
temporarily unavailable, or is down for maintenance. If this error persists, then |
|
please contact your LonCAPA support folks for assistance and diagnosis. |
|
<br /> |
|
<br /> |
<br /> |
We apologize for the inconvenience. |
'.$ssi_last_error.' |
</p> |
</p> |
$end_page |
<p>'. |
ERROR_END |
&mt('It is recommended that you try printing again later, as this error may mean the server was just temporarily unavailable, or is down for maintenance.').'<br />'. |
|
&mt('If the error persists, please contact the [_1] for assistance.',$helpurl). |
|
'</p><p>'. |
|
&mt('We apologize for the inconvenience.'). |
|
'</p>'. |
|
$end_page); |
} else { |
} else { |
|
|
#-- writing .tex file in prtspool |
#-- writing .tex file in prtspool |