added function-backtrace to db-error-messages

This commit is contained in:
Ralf Becker 2003-10-16 16:59:31 +00:00
parent cb12c82707
commit 94a2f4e043
3 changed files with 21 additions and 3 deletions

View File

@ -330,6 +330,7 @@
{
printf("<br><b>Line:</b> %s",$line);
}
printf("<br><b>Function:</b> %s\n",function_backtrace());
if ($this->Halt_On_Error != "report")
{

View File

@ -430,6 +430,7 @@
{
printf("<br><b>Line:</b> %s",$line);
}
printf("<br><b>Function:</b> %s\n",function_backtrace());
if ($this->Halt_On_Error != "report")
{

View File

@ -437,6 +437,15 @@
}
}
if ($this->xmlrpc || $this->soap)
{
$s .= sprintf("Function/Module: %s\n",function_backtrace());
}
else
{
$s .= sprintf("<br><b>Function/Module:</b> %s\n",function_backtrace());
}
if ($this->Halt_On_Error == 'yes')
{
if (! $this->xmlrpc && ! $this->soap)
@ -456,8 +465,15 @@
else
{
echo $s;
if (is_object($GLOBALS['phpgw']->common))
{
$GLOBALS['phpgw']->common->phpgw_exit(True);
}
else
{
exit();
}
}
}
function table_names()