Skip to content

Add debug context to error messages across codebase#186

Merged
tartarughina merged 2 commits intozed-extensions:mainfrom
tartarughina:error-decoration
Feb 7, 2026
Merged

Add debug context to error messages across codebase#186
tartarughina merged 2 commits intozed-extensions:mainfrom
tartarughina:error-decoration

Conversation

@tartarughina
Copy link
Collaborator

Improve error handling by adding contextual information to error messages instead of forwarding raw errors. This helps with debugging by providing details about what operation failed and relevant parameters like file paths, URLs, and component names.

All error messages now follow a consistent pattern:

  • Start with "Failed to..."
  • Use colon separator before error details
  • Use "err" as the error variable name

Improve error handling by adding contextual information to error
messages instead of forwarding raw errors. This helps with debugging
by providing details about what operation failed and relevant
parameters like file paths, URLs, and component names.

All error messages now follow a consistent pattern:
- Start with "Failed to..."
- Use colon separator before error details
- Use "err" as the error variable name
Copy link
Collaborator

@playdohface playdohface left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice, not only improves the error messages but also serves as documentation to some degree

@tartarughina tartarughina merged commit 2defa5f into zed-extensions:main Feb 7, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants