# Inconsistent error message with git checkout

1 messages from 2020-08-20 to 2020-08-20. Participants: Chris DeCarolis.
Thread: https://gitlist.dev/t/54075

## Chris DeCarolis, 2020-08-20 18:27

Subject: Inconsistent error message with git checkout
Message-ID: <CAMs-bDiFmD3=rWVc33oD-rUYWfawAjeqtbgsfoYzq9cav9UCsQ@mail.gmail.com>
URL: https://gitlist.dev/e/CAMs-bDiFmD3%3DrWVc33oD-rUYWfawAjeqtbgsfoYzq9cav9UCsQ%40mail.gmail.com

```
Hello,

I hope all is well. I wanted to send this email to report a possible
inconsistency with the error message displayed by git checkout under
certain conditions.

When I try to switch branches using git checkout, and switching is
disallowed due to uncommitted changes, the error message will tell me
the absolute path of the files causing the issue rather than the
relative path. This seems to be a bit inconsistent, as calling git
status, for example, will display relative paths. Since this only
occurs when barred from actually switching branches, it seems
displaying the relative path would be a better option here.

I'd love to know your thoughts as to whether changing this behavior is
worthwhile or not.

Best,
Chris

```
