Commit 78689645 authored by Max Kellermann's avatar Max Kellermann

db/update/Archive: delete archive from database on error

parent 26970579
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment