Author: rwhitcomb Date: Fri Jan 5 17:57:06 2018 New Revision: 1820337 URL: http://svn.apache.org/viewvc?rev=1820337&view=rev Log: PIVOT-1021: Add the node class name to the exception thrown from Document.insert() in order to better track down what is going wrong with the Undo operation after a delete.
Modified: pivot/trunk/wtk/src/org/apache/pivot/wtk/text/Document.java Modified: pivot/trunk/wtk/src/org/apache/pivot/wtk/text/Document.java URL: http://svn.apache.org/viewvc/pivot/trunk/wtk/src/org/apache/pivot/wtk/text/Document.java?rev=1820337&r1=1820336&r2=1820337&view=diff ============================================================================== --- pivot/trunk/wtk/src/org/apache/pivot/wtk/text/Document.java (original) +++ pivot/trunk/wtk/src/org/apache/pivot/wtk/text/Document.java Fri Jan 5 17:57:06 2018 @@ -41,7 +41,8 @@ public class Document extends Block { @Override public void insert(Node node, int index) { if (!(node instanceof Block)) { - throw new IllegalArgumentException("Child node must be an instance of " + throw new IllegalArgumentException("Child node (" + + node.getClass().getSimpleName() + ") must be an instance of " + Block.class.getName()); }