Fix "undefined" for stack when a string is passed as Zotero.startupError

This commit is contained in:
Dan Stillman 2017-09-11 03:52:10 -04:00
parent 33128d1f59
commit 48778b5d50

View file

@ -357,7 +357,7 @@ function ZoteroService() {
dump(e + "\n\n");
Components.utils.reportError(e);
if (!zContext.Zotero.startupError) {
zContext.Zotero.startupError = e.stack || e + "\n\n" + e.stack;
zContext.Zotero.startupError = e.stack || e;
}
if (!isStandalone()) {
throw e;