details:   https://code.openbravo.com/erp/devel/pi/rev/d10e8d819216
changeset: 27154:d10e8d819216
user:      Inigo Sanchez <inigo.sanchez <at> openbravo.com>
date:      Thu Jul 30 10:50:41 2015 +0200
summary:   Fixed issue 30458: Error information is hidden when a modulescript 
fails

The problem was that error information is hidden when a modulescript fails. Now 
it has
been showed more information when a handleError() method is thrown.

diffstat:

 src-core/src/org/openbravo/modulescript/ModuleScript.java |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (15 lines):

diff -r 08f447bbcf10 -r d10e8d819216 
src-core/src/org/openbravo/modulescript/ModuleScript.java
--- a/src-core/src/org/openbravo/modulescript/ModuleScript.java Sun Jul 26 
14:55:07 2015 +0200
+++ b/src-core/src/org/openbravo/modulescript/ModuleScript.java Thu Jul 30 
10:50:41 2015 +0200
@@ -143,8 +143,8 @@
   }
 
   protected void handleError(Throwable t) {
-    log4j
-        .error("Error executing moduleScript " + this.getClass().getName() + 
": " + t.getMessage());
+    log4j.error(
+        "Error executing moduleScript " + this.getClass().getName() + ": " + 
t.getMessage(), t);
     throw new BuildException("Execution of moduleScript " + 
this.getClass().getName() + "failed.");
   }
 }
\ No newline at end of file

------------------------------------------------------------------------------
_______________________________________________
Openbravo-commits mailing list
Openbravo-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to