changeset 1810:3c43b07e12b7 default tip

minor
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 12 May 2024 22:00:42 -0600
parents 90187946d1a4
children
files src/goodjava/xml/XmlElement.java
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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;