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

Early return UID/GID if nonexistent #190

Closed
wants to merge 1 commit into from

Conversation

nwoythal
Copy link

@nwoythal nwoythal commented Jun 7, 2023

If a UID/GID doesn't exist on the system, just print the value of it instead of hard crashing.

(Hopefully) fixes #189

If a UID/GID doesn't exist on the system, just print the value of it
instead of hard crashing.
@solidiquis
Copy link
Owner

Hey @nwoythal! Thanks for filing an issue and for the submission! Really appreciate it, however, returning the UID as a string isn't the desired behavior in the case of an invalid user or group so I decided to return an error instead in this PR.

Thanks again though for finding this one! If you're interested in learning Rust or contributing further feel free to shoot me a discord message! You can find my discord on my Github profile.

@solidiquis solidiquis closed this Jun 9, 2023
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.

erd --long crashes when attempting to display user/group info for nonexistant group/user
2 participants