Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Informative for-file error message #33

Merged
merged 3 commits into from
Nov 5, 2024
Merged

Informative for-file error message #33

merged 3 commits into from
Nov 5, 2024

Conversation

perryqh
Copy link
Contributor

@perryqh perryqh commented Nov 5, 2024

Instead of simply stating that a file has multiple owners, show how the ownerships were determined.

Screenshot 2024-11-05 at 17 20 34

impl Source {
pub fn len(&self) -> usize {
match self {
Source::Directory(path) => path.matches('/').count(),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only care about length of directory paths

@perryqh perryqh merged commit 189bb8f into main Nov 5, 2024
8 checks passed
@perryqh perryqh deleted the ph/source-struct branch November 10, 2024 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants