Removed bad error message
This commit is contained in:
@@ -92,7 +92,10 @@ namespace lms::scanner
|
|||||||
const std::filesystem::directory_entry fileEntry{ p, ec };
|
const std::filesystem::directory_entry fileEntry{ p, ec };
|
||||||
if (ec)
|
if (ec)
|
||||||
{
|
{
|
||||||
// TODO store error?
|
// no_such_file_or_directory may be triggered if the mount point changed
|
||||||
|
if (ec == std::errc::no_such_file_or_directory)
|
||||||
|
LMS_LOG(DBUPDATER, DEBUG, "Removing " << p << ": missing");
|
||||||
|
else
|
||||||
LMS_LOG(DBUPDATER, ERROR, "Error while checking file " << p << ": " << ec.message());
|
LMS_LOG(DBUPDATER, ERROR, "Error while checking file " << p << ": " << ec.message());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user