From d367382f390d12aa8920b31cb19fe51efa60764c Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Tue, 28 Feb 2012 11:21:12 -0500 Subject: [PATCH] Fix debug output logging in the connector --- chrome/content/zotero/xpcom/debug.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/chrome/content/zotero/xpcom/debug.js b/chrome/content/zotero/xpcom/debug.js index 8da623f7dd..97ff76f382 100644 --- a/chrome/content/zotero/xpcom/debug.js +++ b/chrome/content/zotero/xpcom/debug.js @@ -153,10 +153,14 @@ Zotero.Debug = new function () { } } - return Zotero.getErrors(true).join('\n\n') + - "\n\n" + Zotero.getSystemInfo() + "\n\n" + - "=========================================================\n\n" + - output; + if(Zotero.getErrors) { + return Zotero.getErrors(true).join('\n\n') + + "\n\n" + Zotero.getSystemInfo() + "\n\n" + + "=========================================================\n\n" + + output; + } else { + return output; + } }