Make ZU.htmlSpecialChars() error message more verbose
This commit is contained in:
parent
a659f93a04
commit
844c503cf7
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user