Catch potential exception
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user