Re-added the error message and query echo to DEBUG error message

PLEASE do not remove it, it is very helpfull when debugging errors


git-svn-id: file:///svn/phpbb/trunk@276 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
James Atkinson 2001-05-13 00:27:04 +00:00
parent 3f4ea178d6
commit 07148f9f31

View file

@ -83,7 +83,8 @@ if(!$result = $db->sql_query($sql))
{
if(DEBUG)
{
error_die(SQL_QUERY, "Error getting memberlist.", __LINE__, __FILE__);
$error = $db->sql_error();
error_die(SQL_QUERY, "Error getting memberlist.<br>Reason: ".$error['message']"<br>Query: $sql", __LINE__, __FILE__);
}
else
{