mirror of
https://github.com/zotero/zotero.git
synced 2026-09-26 01:11:23 +00:00
Throw Error, not Exception
This commit is contained in:
parent
2a3af13ddf
commit
915542e696
1 changed files with 1 additions and 1 deletions
|
|
@ -53,7 +53,7 @@ Zotero.URI = new function () {
|
|||
this.getCurrentUserURI = function (noLocal) {
|
||||
var userID = Zotero.Users.getCurrentUserID();
|
||||
if (!userID && noLocal) {
|
||||
throw new Exception("Local userID not available and noLocal set in Zotero.URI.getCurrentUserURI()");
|
||||
throw new Error("Local userID not available and noLocal set in Zotero.URI.getCurrentUserURI()");
|
||||
}
|
||||
if (userID) {
|
||||
return _baseURI + "users/" + userID;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue