Catch potential exception

This commit is contained in:
Georg Hagen
2025-11-10 12:50:22 +01:00
parent 266bd794ef
commit 536bb13dcd

View File

@@ -74,8 +74,10 @@ namespace OpenVulkano
{ {
if (IsTreeEmpty(p)) if (IsTreeEmpty(p))
{ {
fs::remove_all(p); std::error_code ec;
deleted = true; fs::remove_all(p, ec);
if (ec) Logger::APP->error("Failed path {}: {}", p.path(), ec.message());
else deleted = true;
} }
} }
} }