diff client/digitallibrary/greyskin/debug.js @ 427:84aee0e6d64e

better alert
author hertzhaft
date Thu, 22 Dec 2005 11:21:35 +0100
parents 68c26335e880
children b9b8e54ed3bb
line wrap: on
line diff
--- a/client/digitallibrary/greyskin/debug.js	Thu Dec 22 11:20:32 2005 +0100
+++ b/client/digitallibrary/greyskin/debug.js	Thu Dec 22 11:21:35 2005 +0100
@@ -14,7 +14,7 @@
 function appendNewElement(node, tagname, content) {
 	// appends a new element to "node", adding content if given
 	if (!node.appendChild) {
-		alert("Could not append: " + typeof(node));
+		alert("Could not append '" + tagname + "' to " + typeof(node));
 		return null;
 		}
 	return node.appendChild(newElement(tagname, content));