db/update/Archive: delete archive from database on error
This commit is contained in:
@@ -123,6 +123,8 @@ UpdateWalk::UpdateArchiveFile(Directory &parent, const char *name,
|
||||
ArchiveFile *file = archive_file_open(&plugin, path_fs.c_str(), error);
|
||||
if (file == nullptr) {
|
||||
LogError(error);
|
||||
if (directory != nullptr)
|
||||
editor.LockDeleteDirectory(directory);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user