diff --git a/chrome/content/zotero/xpcom/style.js b/chrome/content/zotero/xpcom/style.js index 79192046c..93b6069d0 100644 --- a/chrome/content/zotero/xpcom/style.js +++ b/chrome/content/zotero/xpcom/style.js @@ -246,7 +246,6 @@ Zotero.Styles = new function() { */ this.install = Zotero.Promise.coroutine(function* (style, origin, silent=false) { var styleTitle; - origin = origin || Zotero.getString('styles.unknownOrigin'); try { if (style instanceof Components.interfaces.nsIFile) { @@ -262,9 +261,9 @@ Zotero.Styles = new function() { // Unless user cancelled, show an alert with the error if(typeof error === "object" && error instanceof Zotero.Exception.UserCancelled) return; if(typeof error === "object" && error instanceof Zotero.Exception.Alert) { - error.log(); + Zotero.logError(error); if (silent) { - throw (error) + throw error; } else { error.present(); } diff --git a/chrome/locale/en-US/zotero/zotero.properties b/chrome/locale/en-US/zotero/zotero.properties index 2941eac88..e242cbbf0 100644 --- a/chrome/locale/en-US/zotero/zotero.properties +++ b/chrome/locale/en-US/zotero/zotero.properties @@ -832,7 +832,6 @@ styles.validationWarning = "%S" is not a valid CSL 1.0.1 style file, and may n styles.installSourceError = %1$S references an invalid or non-existent CSL file at %2$S as its source. styles.deleteStyle = Are you sure you want to delete the style "%1$S"? styles.deleteStyles = Are you sure you want to delete the selected styles? -styles.unknownOrigin = External Style styles.abbreviations.title = Load Abbreviations styles.abbreviations.parseError = The abbreviations file "%1$S" is not valid JSON.