Skip to content

Commit

Permalink
Clarify some error messages
Browse files Browse the repository at this point in the history
See #164
  • Loading branch information
SuperCuber committed Feb 17, 2024
1 parent 1d0d696 commit b1bf261
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/filesystem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit b1bf261

Please sign in to comment.