[Erp5-report] r10501 - /erp5/trunk/products/ERP5/Document/Rule.py

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Oct 3 10:35:45 CEST 2006


Author: romain
Date: Tue Oct  3 10:35:43 2006
New Revision: 10501

URL: http://svn.erp5.org?rev=10501&view=rev
Log:
Display a more useful error message.

Modified:
    erp5/trunk/products/ERP5/Document/Rule.py

Modified: erp5/trunk/products/ERP5/Document/Rule.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/Rule.py?rev=10501&r1=10500&r2=10501&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/Rule.py (original)
+++ erp5/trunk/products/ERP5/Document/Rule.py Tue Oct  3 10:35:43 2006
@@ -383,5 +383,7 @@
       else:
         # movement not modifiable, we can decide to create a compensation
         # with negative quantity
-        raise NotImplementedError("Not Implemented")
+        raise NotImplementedError(
+                "Can not create a compensation movement for %s" % \
+                movement.getRelativeUrl())
     return (add_list, modify_dict, delete_list)




More information about the Erp5-report mailing list