diff --git a/chrome/content/zotero/xpcom/debug.js b/chrome/content/zotero/xpcom/debug.js index 05ba3e6e55..963d7903f5 100644 --- a/chrome/content/zotero/xpcom/debug.js +++ b/chrome/content/zotero/xpcom/debug.js @@ -208,17 +208,23 @@ Zotero.Debug = new function () { } } } - - if (Zotero.getErrors) { - return Zotero.getSystemInfo().then(function(sysInfo) { + + return Zotero.getSystemInfo().then(function(sysInfo) { + if (Zotero.isConnector) { + return Zotero.Error.getErrors().then(function(errors) { + return errors.join('\n\n') + + "\n\n" + sysInfo + "\n\n" + + "=========================================================\n\n" + + output; + }); + } + else { return Zotero.getErrors(true).join('\n\n') + "\n\n" + sysInfo + "\n\n" + "=========================================================\n\n" + output; - }); - } else { - return output; - } + } + }); });