# Improve snippet parse error context \(\#46277\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 0ff0390f27bc650f505b2c03773281cb65773594

Requested commit: 0ff0390f27bc650f505b2c03773281cb65773594

Commit: 0ff0390f27bc650f505b2c03773281cb65773594

Tree: c7b5315e4d5f696eb0723ac41a279ca05ddec3c4

Author: Oscar Vargas Torres

Committer: GitHub

## Message

```
Improve snippet parse error context (#46277)

Release Notes:

- N/A


Description:
E.g. Instead of saying:
2026-01-07T09:08:42-06:00 ERROR [crates/snippet_provider/src/lib.rs:46]
failed to parse snippet
  Caused by:
      expected an integer

Now the logs give more valuable information like:
2026-01-07T10:47:39-06:00 ERROR [crates/snippet_provider/src/lib.rs:48]
invalid snippet in /Users/oscarvarto/Library/Application
Support/Zed/extensions/installed/django-snippets/./snippets/python.json
(re_path)
```

## Parents

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

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