# Fix unformatted error contexts \(\#52568\) · gitcafe/zed

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

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

Visibility: public

Requested revision: c90bf6e6b7c0c792b91dd7eeb7d725cf74c1b234

Requested commit: c90bf6e6b7c0c792b91dd7eeb7d725cf74c1b234

Commit: c90bf6e6b7c0c792b91dd7eeb7d725cf74c1b234

Tree: 263834b1ae8c25c3a6d07e4c2f6d9367524a7873

Author: Jakub Charvat

Committer: GitHub

## Message

```
Fix unformatted error contexts (#52568)

When debugging a remote SSH connection, I came across an unformatted
format string in the output log. I changed the raw `.context(fmt)` call
to a `.with_context(|| format!(fmt))`. I ran a quick sweep through the
codebase to identify and fix two other instances of the same issue.

Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Release Notes:

- N/A
```

## Parents

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

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