--- loncom/interface/lonerrorhandler.pm 2001/01/03 16:20:59 1.1 +++ loncom/interface/lonerrorhandler.pm 2001/01/06 14:45:34 1.2 @@ -18,6 +18,21 @@ sub handler { $r->send_http_header; return OK if $r->header_only; +# ------------------------------------------------------------- Get environment + my $envkey; + my $env=''; + + foreach $envkey (sort keys %ENV) { + $env.="$envkey: $ENV{$envkey}\n"; + } + + $env=~s/\"/\'\'/g; + my $recipients=$r->dir_config('lonAdmEMail').','. + $r->dir_config('lonSysEMail'); + + my $req=$r->as_string(); + $req=~s/\"/\'\'/g; + # --------------------------------------------------- Print login screen header $r->print(< @@ -27,10 +42,31 @@ sub handler {

Sorry!

-

Somewhere something went wrong.

+

Somewhere something went wrong - please help us to find out what.

+Please take a moment to fill out the form below. Your information, together +with internal debugging information, will be emailed to the system and server +administrators. +
+ +

Please describe what you did just before this screen came up

+ + +

Is this problem reproducible?

+ Yes! +

Do you have any guesses why this might have happened?

+ +

+ +

+

Thank you for your help!

ENDDOCUMENT +# -------------------------- Better terminate this in case something was sticky + $r->child_terminate(); + return OK; }