Fix "undefined" for stack when a string is passed as Zotero.startupError
This commit is contained in:
parent
33128d1f59
commit
48778b5d50
|
@ -357,7 +357,7 @@ function ZoteroService() {
|
||||||
dump(e + "\n\n");
|
dump(e + "\n\n");
|
||||||
Components.utils.reportError(e);
|
Components.utils.reportError(e);
|
||||||
if (!zContext.Zotero.startupError) {
|
if (!zContext.Zotero.startupError) {
|
||||||
zContext.Zotero.startupError = e.stack || e + "\n\n" + e.stack;
|
zContext.Zotero.startupError = e.stack || e;
|
||||||
}
|
}
|
||||||
if (!isStandalone()) {
|
if (!isStandalone()) {
|
||||||
throw e;
|
throw e;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user