summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorA Farzat <a@farzat.xyz>2026-06-06 16:01:48 +0300
committerA Farzat <a@farzat.xyz>2026-06-06 17:52:38 +0300
commit36ec29eca23978bc6489f4abaeed405d05c208b9 (patch)
tree9e690ad580ac4320333fca8f06e041612e1473b9 /src
parentf29eb66f252e86441551bb2eba52b032605fd9cf (diff)
downloadrepo2markdown-36ec29eca23978bc6489f4abaeed405d05c208b9.tar.gz
repo2markdown-36ec29eca23978bc6489f4abaeed405d05c208b9.zip
Fix duplicate warning message
Diffstat (limited to 'src')
-rw-r--r--src/run.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/run.rs b/src/run.rs
index 2209e20..93d65a5 100644
--- a/src/run.rs
+++ b/src/run.rs
@@ -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;
}