diff --git a/src/dwarfs/scanner.cpp b/src/dwarfs/scanner.cpp index f376988d..443d1aa9 100644 --- a/src/dwarfs/scanner.cpp +++ b/src/dwarfs/scanner.cpp @@ -428,7 +428,8 @@ scanner_::add_entry(std::filesystem::path const& name, break; default: - LOG_ERROR << "unsupported entry type: " << int(pe->type()); + LOG_ERROR << "unsupported entry type: " << int(pe->type()) << " (" + << pe->fs_path() << ")"; prog.errors++; break; } @@ -436,7 +437,8 @@ scanner_::add_entry(std::filesystem::path const& name, return pe; } catch (const std::system_error& e) { - LOG_ERROR << "error reading entry: " << exception_str(e); + LOG_ERROR << fmt::format("error reading entry (path={}): {}", name.string(), + exception_str(e)); prog.errors++; }