# Log error if worktree fails to relativize git repo path · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/d17d37ff616818184e14120c4d7727483adc12ea)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: d17d37ff616818184e14120c4d7727483adc12ea

Requested commit: d17d37ff616818184e14120c4d7727483adc12ea

Commit: d17d37ff616818184e14120c4d7727483adc12ea

Tree: 8f8fe55e47df7d7ea93571182cd589206caaf038

Author: Thorsten Ball

Committer: Thorsten Ball

## Message

```
Log error if worktree fails to relativize git repo path

We saw a panic that was caused by the previous `Option.unwrap()`, so
this changes the method to return a `Result` and logs the error if
possible.

Co-authored-by: Antonio <antonio@zed.dev>

```

## Parents

- [710e47977d4605701fc29659807ecbfc6fadfc47](https://git.cafe/gitcafe/zed/commit/710e47977d4605701fc29659807ecbfc6fadfc47?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/d17d37ff616818184e14120c4d7727483adc12ea?format=markdown)
