From 36ec29eca23978bc6489f4abaeed405d05c208b9 Mon Sep 17 00:00:00 2001 From: A Farzat Date: Sat, 6 Jun 2026 16:01:48 +0300 Subject: Fix duplicate warning message --- src/run.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/run.rs') 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( 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; } -- cgit v1.3.1