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

uds: cleanup error reporting to user #136

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

colemickens
Copy link
Member

No description provided.

Comment on lines 215 to 224
if !nix::unistd::Uid::effective().is_root() {
return Err(eyre!("`fh login` is attempting to update a file owned by root, please re-run the same command, prefixed with `sudo -i`."))
}

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm still missing something, this outputs the backtrace message too, even though it's just un-Try'd in this function's caller.

@colemickens colemickens force-pushed the colemickens/uds-error-cleanup branch from bc1cb93 to 6d64a9b Compare August 5, 2024 19:56
@colemickens colemickens force-pushed the colemickens/uds-error-cleanup branch from 6d64a9b to 1780425 Compare August 5, 2024 20:01
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.

1 participant