jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1329666 - /jmeter/trunk/src/core/org/apache/jmeter/gui/action/ActionRouter.java
Date Tue, 24 Apr 2012 12:15:06 GMT
Author: sebb
Date: Tue Apr 24 12:15:06 2012
New Revision: 1329666

URL: http://svn.apache.org/viewvc?rev=1329666&view=rev
Log:
More useful error message

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/gui/action/ActionRouter.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/gui/action/ActionRouter.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/gui/action/ActionRouter.java?rev=1329666&r1=1329665&r2=1329666&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/gui/action/ActionRouter.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/gui/action/ActionRouter.java Tue Apr 24 12:15:06
2012
@@ -80,7 +80,19 @@ public final class ActionRouter implemen
                     c.doAction(e);
                     postActionPerformed(c.getClass(), e);
                 } catch (IllegalUserActionException err) {
-                    JMeterUtils.reportErrorToUser(err.toString());
+                    String msg = err.getMessage();
+                    if (msg == null) {
+                        msg = err.toString();
+                    }
+                    Throwable t = err.getCause();
+                    if (t != null) {
+                        String cause = t.getMessage();
+                        if (cause == null) {
+                            cause = t.toString();
+                        }
+                        msg = msg + "\n" + cause;
+                    }
+                    JMeterUtils.reportErrorToUser(msg);                        
                 } catch (Exception err) {
                     log.error("", err);
                 }



Mime
View raw message