More rearrangement to prevent crash on error

This commit is contained in:
Simon Kornblith 2012-01-10 14:10:30 -05:00
parent f01ab3ffa4
commit 5a7c7368b7

View file

@ -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);
}
/**