Revision: 1797
          http://mrbs.svn.sourceforge.net/mrbs/?rev=1797&view=rev
Author:   cimorrison
Date:     2011-03-01 08:45:29 +0000 (Tue, 01 Mar 2011)

Log Message:
-----------
Added some error reporting to upgrade 17

Modified Paths:
--------------
    mrbs/trunk/web/upgrade/17/post.inc

Modified: mrbs/trunk/web/upgrade/17/post.inc
===================================================================
--- mrbs/trunk/web/upgrade/17/post.inc  2011-02-28 20:02:21 UTC (rev 1796)
+++ mrbs/trunk/web/upgrade/17/post.inc  2011-03-01 08:45:29 UTC (rev 1797)
@@ -35,6 +35,7 @@
 $res = sql_command($sql);
 if ($res == -1)
 {
+  trigger_error(sql_error(), E_USER_WARNING);
   // No need to localise, should never happen
   print "<span class=\"error\">Failed to update status column in entry 
table.</span>";
 }
@@ -60,6 +61,7 @@
 
 if ($res == -1)
 {
+  trigger_error(sql_error(), E_USER_WARNING);
   // No need to localise, should never happen
   print "<span class=\"error\">Failed to update status column in repeat table 
with privacy status.</span>";
 }
@@ -72,6 +74,7 @@
 $res = sql_query($sql);
 if ($res === FALSE)
 {
+  trigger_error(sql_error(), E_USER_WARNING);
   fatal_error(FALSE, "Failed to update status column in repeat table with 
approval status.");
 }
 
@@ -83,6 +86,7 @@
            WHERE id=" . $row['repeat_id'];
   if (sql_command($sql) != 1)
   {
+    trigger_error(sql_error(), E_USER_WARNING);
     fatal_error(FALSE, "Failed to update status column in repeat table with 
approval status.");
   }
 }  


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to