Commit 1fbefb43 authored by Leigh Stoller's avatar Leigh Stoller

Add more information to web error email message (script and

arguments).
parent f68d3b80
...@@ -106,10 +106,12 @@ function TBMAIL($to, $subject, $message, $headers = 0) ...@@ -106,10 +106,12 @@ function TBMAIL($to, $subject, $message, $headers = 0)
# #
function TBERROR ($message, $death, $xmp = 0) { function TBERROR ($message, $death, $xmp = 0) {
global $TBMAIL_WWW, $TBMAIL_OPS, $TBMAILADDR; global $TBMAIL_WWW, $TBMAIL_OPS, $TBMAILADDR;
$script = $_SERVER['REQUEST_URI'];
TBMAIL($TBMAIL_OPS, TBMAIL($TBMAIL_OPS,
"WEB ERROR REPORT", "WEB ERROR REPORT",
"\n". "\n".
"In $script\n\n".
"$message\n\n". "$message\n\n".
"Thanks,\n". "Thanks,\n".
"Testbed WWW\n", "Testbed WWW\n",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment