From 844c503cf79ed9d22f0d057636de74ff4c968f87 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 31 Jul 2007 18:51:37 +0000 Subject: [PATCH] Make ZU.htmlSpecialChars() error message more verbose --- chrome/content/zotero/xpcom/utilities.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/utilities.js b/chrome/content/zotero/xpcom/utilities.js index 072905ecb..f53214678 100644 --- a/chrome/content/zotero/xpcom/utilities.js +++ b/chrome/content/zotero/xpcom/utilities.js @@ -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) {