commit 5a7c7368b74ea78f5f66e6206e8d575b0651cca9
parent f01ab3ffa474d4bcd71f738f6cb322bd7c6ec207
Author: Simon Kornblith <simon@simonster.com>
Date: Tue, 10 Jan 2012 14:10:30 -0500
More rearrangement to prevent crash on error
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/chrome/content/zotero/xpcom/integration.js b/chrome/content/zotero/xpcom/integration.js
@@ -322,8 +322,6 @@ Zotero.Integration = new function() {
* Show appropriate dialogs for an integration error
*/
this.handleError = function(e, document) {
- this.complete(document);
-
if(!(e instanceof Zotero.Integration.UserCancelledException)) {
try {
var displayError = null;
@@ -378,6 +376,8 @@ Zotero.Integration = new function() {
Zotero.logError(e);
}
}
+
+ this.complete(document);
}
/**