changeset 1810:3c43b07e12b7

minor
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 12 May 2024 22:00:42 -0600
parents 90187946d1a4
children 55d89a183c82
files src/goodjava/xml/XmlElement.java
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
diff -r 90187946d1a4 -r 3c43b07e12b7 src/goodjava/xml/XmlElement.java
--- a/src/goodjava/xml/XmlElement.java	Sun May 12 17:15:33 2024 -0600
+++ b/src/goodjava/xml/XmlElement.java	Sun May 12 22:00:42 2024 -0600
@@ -29,15 +29,15 @@
 
 	public void setContent(String content) {
 		if( content == null )
-			throw new IllegalArgumentException("content can't be null");
+			throw new IllegalArgumentException("content of '"+name+"' can't be null");
 		this.content = content;
 	}
 
 	public void setContent(XmlElement[] content) {
 		if( content == null )
-			throw new IllegalArgumentException("content can't be null");
+			throw new IllegalArgumentException("content of '"+name+"' can't be null");
 		if( content.length == 0 )
-			throw new IllegalArgumentException("content can't be empty");
+			throw new IllegalArgumentException("content of '"+name+"' can't be empty");
 		this.content = content;
 		for( XmlElement el : content ) {
 			el.parent = this;