[*] Update Unix stat impls error message

This commit is contained in:
Reece Wilson 2021-11-07 22:32:54 +00:00
parent 21f8b69a57
commit 16b4d65910

View File

@ -213,9 +213,9 @@ namespace Aurora::IO::FS
if (err == -1)
{
if (ENOENT == errno)
if (ENOENT != errno)
{
LogWarn("Critical IO error, errno = {}", path);
LogWarn("Critical IO error while stating file (errno: {}, path: {})", errno, path);
}
return false;
}
@ -227,7 +227,7 @@ namespace Aurora::IO::FS
if (!stat.exists)
{
LogWarn("Missing attribute type of path {}, stat mode {}", path, s.st_mode);
LogWarn("Missing attribute type in stat mode {} (of path {})", s.st_mode, path);
return false;
}