gitui icon indicating copy to clipboard operation
gitui copied to clipboard

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

Open MoreDelay opened this issue 7 months ago • 0 comments

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)

MoreDelay avatar May 23 '25 17:05 MoreDelay