diff options
| author | A Farzat <a@farzat.xyz> | 2026-06-06 16:01:48 +0300 |
|---|---|---|
| committer | A Farzat <a@farzat.xyz> | 2026-06-06 17:52:38 +0300 |
| commit | 36ec29eca23978bc6489f4abaeed405d05c208b9 (patch) | |
| tree | 9e690ad580ac4320333fca8f06e041612e1473b9 /src/run.rs | |
| parent | f29eb66f252e86441551bb2eba52b032605fd9cf (diff) | |
| download | repo2markdown-36ec29eca23978bc6489f4abaeed405d05c208b9.tar.gz repo2markdown-36ec29eca23978bc6489f4abaeed405d05c208b9.zip | |
Fix duplicate warning message
Diffstat (limited to 'src/run.rs')
| -rw-r--r-- | src/run.rs | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -6,7 +6,9 @@ use std::{ path::Path, }; -use crate::{logger::Logger, normalizer::Normalizer, renderer::Renderer}; +use crate::{ + logger::Logger, normalizer::Normalizer, renderer::Renderer, util::path_display::display_path, +}; const DEFAULT_PROJECT_NAME: &str = "Project Outline"; @@ -37,8 +39,8 @@ pub fn run<R: Read, W: Write>( let normalized_path = normalizer.normalize(path)?; if !seen_paths.insert(normalized_path.relative.clone()) { logger.warn(format!( - "Duplicate file detected: {:?}", - normalized_path.relative + "Warning: skipping duplicate file: {}", + display_path(&normalized_path.relative) )); continue; } |
