Make ZU.htmlSpecialChars() error message more verbose

This commit is contained in:
Dan Stillman 2007-07-31 18:51:37 +00:00
parent a659f93a04
commit 844c503cf7

View File

@ -132,7 +132,7 @@ Zotero.Utilities.prototype.cleanTags = function(x) {
*/
Zotero.Utilities.prototype.htmlSpecialChars = function(str) {
if (typeof str != 'string') {
throw "htmlSpecialChars: argument must be a string";
throw "Argument '" + str + "' must be a string in Zotero.Utilities.htmlSpecialChars()";
}
if (!str) {