Commit 510791af authored by Leigh B Stoller's avatar Leigh B Stoller

Print a stack backtrace from TBERROR.

parent 6602689c
......@@ -308,6 +308,10 @@ function TBERROR ($message, $death, $xmp = 0) {
global $session_interactive, $session_errorhandler;
$script = urldecode($_SERVER['REQUEST_URI']);
# print backtrace
$e = new Exception();
$trace = $e->getTraceAsString();
if (function_exists("CLEARBUSY")) {
CLEARBUSY();
}
......@@ -316,6 +320,7 @@ function TBERROR ($message, $death, $xmp = 0) {
"\n".
"In $script\n\n".
"$message\n\n".
"$trace\n\n".
"Thanks,\n".
"Testbed WWW\n",
"From: $TBMAIL_OPS\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