From b1bf261627d1a0403437e3bdf8ca504950f4a9fa Mon Sep 17 00:00:00 2001 From: SuperCuber Date: Sat, 17 Feb 2024 17:48:13 +0200 Subject: [PATCH] Clarify some error messages See #164 --- src/filesystem.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/filesystem.rs b/src/filesystem.rs index 276c42e..fb43c72 100644 --- a/src/filesystem.rs +++ b/src/filesystem.rs @@ -731,8 +731,8 @@ impl std::fmt::Display for SymlinkComparison { Identical => "target points at source", OnlySourceExists => "target missing", OnlyTargetExists => "source is missing", - TargetNotSymlink => "target isn't a symlink", - Changed => "target exists and doesn't point at source", + TargetNotSymlink => "target already exists and isn't a symlink", + Changed => "target already exists and doesn't point at source", BothMissing => "source and target are missing", } .fmt(f) @@ -777,7 +777,7 @@ impl std::fmt::Display for TemplateComparison { OnlyCacheExists => "target doesn't exist", OnlyTargetExists => "cache doesn't exist", Changed => "target contents were changed", - TargetNotRegularFile => "target is a symbolic link or directory", + TargetNotRegularFile => "target already exists and isn't a regular file", BothMissing => "cache and target are missing", } .fmt(f)