Catch potential exception
This commit is contained in:
@@ -74,8 +74,10 @@ namespace OpenVulkano
|
||||
{
|
||||
if (IsTreeEmpty(p))
|
||||
{
|
||||
fs::remove_all(p);
|
||||
deleted = true;
|
||||
std::error_code ec;
|
||||
fs::remove_all(p, ec);
|
||||
if (ec) Logger::APP->error("Failed path {}: {}", p.path(), ec.message());
|
||||
else deleted = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user