Improve logging

This commit is contained in:
Marcus Holland-Moritz 2023-06-23 09:56:01 +02:00
parent 4bf68ddb06
commit f02cc0fbfd

View File

@ -478,7 +478,8 @@ scanner_<LoggerPolicy>::scan_tree(const std::string& path, progress& prog,
prog.dirs_scanned++;
} catch (const std::system_error& e) {
LOG_ERROR << "cannot open directory: " << e.what();
LOG_ERROR << "cannot read directory `" << path
<< "`: " << folly::exceptionStr(e);
prog.errors++;
}
}