Revision: 1865
http://mrbs.svn.sourceforge.net/mrbs/?rev=1865&view=rev
Author: cimorrison
Date: 2011-08-15 17:59:19 +0000 (Mon, 15 Aug 2011)
Log Message:
-----------
Improved error reporting
Modified Paths:
--------------
mrbs/trunk/web/mrbs_sql.inc
Modified: mrbs/trunk/web/mrbs_sql.inc
===================================================================
--- mrbs/trunk/web/mrbs_sql.inc 2011-08-15 08:42:34 UTC (rev 1864)
+++ mrbs/trunk/web/mrbs_sql.inc 2011-08-15 17:59:19 UTC (rev 1865)
@@ -819,6 +819,7 @@
// Check that we've got an id
if (!isset($id))
{
+ trigger_error("id not set", E_USER_WARNING);
if ($silent)
{
return FALSE;
@@ -903,19 +904,20 @@
$res = sql_query($sql);
if (! $res)
{
+ trigger_error(sql_error(), E_USER_WARNING);
if ($silent)
{
return FALSE;
}
else
{
- trigger_error(sql_error(), E_USER_WARNING);
fatal_error(FALSE, get_vocab("fatal_db_error"));
}
}
if (sql_count($res) < 1)
{
+ trigger_error("No rows found matching id=$id", E_USER_WARNING);
if ($silent)
{
return FALSE;
@@ -959,6 +961,10 @@
FROM $tbl_repeat WHERE id=${row['repeat_id']} LIMIT
1");
if (!$res || (!$extra_row = sql_row_keyed($res, 0)))
{
+ if (!$res)
+ {
+ trigger_error(sql_error(), E_USER_WARNING);
+ }
if ($silent)
{
return FALSE;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
uberSVN's rich system and user administration capabilities and model
configuration take the hassle out of deploying and managing Subversion and
the tools developers use with it. Learn more about uberSVN and get a free
download at: http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits