Mercurial > hg > digilib
diff client/digitallibrary/greyskin/debug.js @ 423:3086315ca94e
better alert
author | hertzhaft |
---|---|
date | Thu, 22 Dec 2005 11:21:35 +0100 |
parents | 893bebd68a3f |
children | 47a391cfae53 |
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));