Author: danydb
Date: 2012-10-01 23:10:09 +0200 (Mon, 01 Oct 2012)
New Revision: 430

Modified:
   trunk/tools/include/class_tool_exercice.php
Log:
throw an exception instead of a negative return

Modified: trunk/tools/include/class_tool_exercice.php
===================================================================
--- trunk/tools/include/class_tool_exercice.php 2012-10-01 21:09:46 UTC (rev 
429)
+++ trunk/tools/include/class_tool_exercice.php 2012-10-01 21:10:09 UTC (rev 
430)
@@ -86,8 +86,7 @@
                }
                catch (Exception $e)
                {
-                       alert($e->getMessage());
-                       return -1;
+                       throw new Exception($e->getMessage());
                }
                $this->cn->start();
                try



---
PhpCompta est un logiciel de comptabilité libre en ligne (full web)
Projet opensource http://www.phpcompta.eu

_______________________________________________
Phpcompta  est un logiciel libre de comptabilité en ligne 
(http://www.phpcompta.eu)
Phpcompta-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/phpcompta-dev

Reply via email to