jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1579970 - /jmeter/trunk/src/core/org/apache/jmeter/testbeans/gui/WrapperEditor.java
Date Fri, 21 Mar 2014 16:15:30 GMT
Author: sebb
Date: Fri Mar 21 16:15:30 2014
New Revision: 1579970

URL: http://svn.apache.org/r1579970
Log:
More info on failure

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/testbeans/gui/WrapperEditor.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/testbeans/gui/WrapperEditor.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/testbeans/gui/WrapperEditor.java?rev=1579970&r1=1579969&r2=1579970&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/testbeans/gui/WrapperEditor.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/testbeans/gui/WrapperEditor.java Fri Mar 21 16:15:30
2014
@@ -21,6 +21,7 @@ import java.beans.PropertyChangeEvent;
 import java.beans.PropertyChangeListener;
 import java.beans.PropertyEditor;
 import java.beans.PropertyEditorSupport;
+import java.util.Arrays;
 
 import javax.swing.JOptionPane;
 
@@ -340,7 +341,7 @@ class WrapperEditor extends PropertyEdit
             text = fixGetAsTextBug(typeEditor.getAsText());
 
             if (!acceptsOther && !isATag(text)) {
-                throw new IllegalArgumentException("Value not allowed: "+text);
+                throw new IllegalArgumentException("Value not allowed: '" + text + "' is
not in " + Arrays.toString(getTags()));
             }
         }
 



Mime
View raw message