From e648b86c93cd719d178d5a9b01142a644f50a581 Mon Sep 17 00:00:00 2001 From: Adam French Date: Sat, 7 Mar 2026 14:49:28 +0000 Subject: [PATCH] Make path not show with debug quotes --- src/error.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/error.rs b/src/error.rs index f85b2aa..4ae28a6 100644 --- a/src/error.rs +++ b/src/error.rs @@ -31,10 +31,10 @@ impl std::fmt::Display for TourError { write!(f, "Cannot end a tour with no steps. Use `tour commit` to add steps first.") } Self::NotADescendant(p) => { - write!(f, "File {:?} is not a descendant of the working directory.", p) + write!(f, "File {} is not a descendant of the working directory.", p.display()) } Self::InsideTourDir(p) => { - write!(f, "File {:?} is inside a .tour directory, which is not allowed.", p) + write!(f, "File {} is inside a .tour directory, which is not allowed.", p.display()) } Self::FileNotFound(p) => write!(f, "File not found: {}", p.display()), Self::StepOutOfRange { step, total } => {