diff --git a/Source/IO/FS/FS.Unix.cpp b/Source/IO/FS/FS.Unix.cpp index c86a6075..46fd40f7 100644 --- a/Source/IO/FS/FS.Unix.cpp +++ b/Source/IO/FS/FS.Unix.cpp @@ -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; }