Skip to content

Undescriptive error when ~/.config/gitui is a broken symlink #2652

Description

@MoreDelay

Describe the bug
When ~/.config/gitui is set to a broken symlink, gitui does not start and the only error message you get is this:

Error: File exists (os error 17)

To Reproduce
Steps to reproduce the behavior:

  1. mv ~/.config/gitui ~/.config/gitui_bak
  2. ln -s ~/does_not_exist ~/.config/gitui
  3. Try to start gitui anywhere
  4. See error

Expected behavior
Give a hint on what's wrong, such as "There seems to be a broken symbolic link at ~/.config/gitui".

Context:

  • OS/Distro + Version: Fedora Linux 42
  • GitUI Version gitui 0.26.3 2025-04-22 ()
  • Rust version: cargo 1.86.0 (adf9b6ad1 2025-02-28)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions