mirror of
https://github.com/chromium/crashpad.git
synced 2025-03-09 14:06:33 +00:00
directory_reader_posix: more verbosity in PLOG
Bug: chromium:949321 Change-Id: I0c73d730ede912a7be0b22ea3ab384a8fda2e528 Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/1564512 Reviewed-by: Joshua Peraza <jperaza@chromium.org> Reviewed-by: Mark Mentovai <mark@chromium.org> Commit-Queue: Egor Pasko <pasko@chromium.org>
This commit is contained in:
parent
5081a90207
commit
ad49fcfad6
@ -39,7 +39,7 @@ DirectoryReader::~DirectoryReader() {}
|
||||
bool DirectoryReader::Open(const base::FilePath& path) {
|
||||
dir_.reset(HANDLE_EINTR_IF_EQ(opendir(path.value().c_str()), nullptr));
|
||||
if (!dir_.is_valid()) {
|
||||
PLOG(ERROR) << "opendir";
|
||||
PLOG(ERROR) << "opendir " << path.value();
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
@ -52,7 +52,7 @@ DirectoryReader::Result DirectoryReader::NextFile(base::FilePath* filename) {
|
||||
dirent* entry = HANDLE_EINTR_IF_EQ(readdir(dir_.get()), nullptr);
|
||||
if (!entry) {
|
||||
if (errno) {
|
||||
PLOG(ERROR) << "readdir";
|
||||
PLOG(ERROR) << "readdir " << filename->value();
|
||||
return Result::kError;
|
||||
} else {
|
||||
return Result::kNoMoreFiles;
|
||||
|
Loading…
x
Reference in New Issue
Block a user