Skip to content

Improve error message on config dir error #2684

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

sobczal2
Copy link

This Pull Request closes #2683.

It changes the error message when the config and/or HOME directory is not writable from:

Error: Permission denied (os error 13)

to

Error: failed to write config to /home/sobczal/Dev/playground/test/.config/gitui

Caused by:
    Permission denied (os error 13)

@cruessler cruessler self-assigned this Jul 31, 2025
Copy link
Collaborator

@cruessler cruessler left a comment

Choose a reason for hiding this comment

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

If you want, you can address my comment, but you can also keep the existing version, up to you!

@sobczal2
Copy link
Author

Thanks for the review, I also feel like your suggested message is a little bit more accurate so I've changed it.

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.

Better error message if config (and/or HOME) directory is not writeable
2 participants