jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1380035 - /jmeter/trunk/test/src/org/apache/jmeter/testbeans/gui/PackageTest.java
Date Sun, 02 Sep 2012 19:06:29 GMT
Author: pmouawad
Date: Sun Sep  2 19:06:29 2012
New Revision: 1380035

URL: http://svn.apache.org/viewvc?rev=1380035&view=rev
Log:
Include original exception in rethrown

Modified:
    jmeter/trunk/test/src/org/apache/jmeter/testbeans/gui/PackageTest.java

Modified: jmeter/trunk/test/src/org/apache/jmeter/testbeans/gui/PackageTest.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/test/src/org/apache/jmeter/testbeans/gui/PackageTest.java?rev=1380035&r1=1380034&r2=1380035&view=diff
==============================================================================
--- jmeter/trunk/test/src/org/apache/jmeter/testbeans/gui/PackageTest.java (original)
+++ jmeter/trunk/test/src/org/apache/jmeter/testbeans/gui/PackageTest.java Sun Sep  2 19:06:29
2012
@@ -90,7 +90,7 @@ public final class PackageTest extends J
             bundle = (ResourceBundle) beanInfo.getBeanDescriptor().getValue(GenericTestBeanCustomizer.RESOURCE_BUNDLE);
         } catch (IntrospectionException e) {
             log.error("Can't get beanInfo for " + testBeanClass.getName(), e);
-            throw new Error(e.toString()); // Programming error. Don't continue.
+            throw new Error(e.toString(), e); // Programming error. Don't continue.
         }
         if (bundle == null) {
             throw new Error("This can't happen!");
@@ -179,7 +179,7 @@ public final class PackageTest extends J
                         GenericTestBeanCustomizer.RESOURCE_BUNDLE);
             } catch (IntrospectionException e) {
                 log.error("Can't get beanInfo for " + testBeanClass.getName(), e);
-                throw new Error(e.toString()); // Programming error. Don't
+                throw new Error(e.toString(), e); // Programming error. Don't
                                                 // continue.
             }
 



Mime
View raw message