Another attachment error recovery improvement
This commit is contained in:
parent
023e755eb6
commit
9bc8d1356a
|
@ -376,6 +376,20 @@ Zotero.Attachments = new function(){
|
|||
}
|
||||
catch (e) {
|
||||
Zotero.DB.rollbackTransaction();
|
||||
|
||||
try {
|
||||
// Clean up
|
||||
if (itemID) {
|
||||
var destDir = Zotero.getStorageDirectory();
|
||||
destDir.append(itemID);
|
||||
if (destDir.exists()) {
|
||||
destDir.remove(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (e) {}
|
||||
|
||||
throw (e);
|
||||
}
|
||||
|
||||
Zotero.Fulltext.indexDocument(document, itemID);
|
||||
|
|
Loading…
Reference in New Issue
Block a user