mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-15 12:13:24 +00:00
try to ensure on windows, but don't fail
This commit is contained in:
parent
9b40c0eb67
commit
53bccc4f23
@ -81,7 +81,6 @@ namespace llarp
|
||||
{
|
||||
errno = 0;
|
||||
error_code_t ec = errno_error();
|
||||
#ifndef WIN32
|
||||
const auto str = pathname.string();
|
||||
if(fs::exists(pathname, ec)) // file exists
|
||||
{
|
||||
@ -115,10 +114,13 @@ namespace llarp
|
||||
}
|
||||
}
|
||||
|
||||
#ifndef WIN32
|
||||
if(ec)
|
||||
llarp::LogError("failed to ensure ", str, ", ", ec.message());
|
||||
#endif
|
||||
return ec;
|
||||
#else
|
||||
return {};
|
||||
#endif
|
||||
}
|
||||
} // namespace util
|
||||
} // namespace llarp
|
||||
|
Loading…
Reference in New Issue
Block a user