Skip to content

feat: improve file parsing error display#123

Merged
branchseer merged 2 commits intomainfrom
01-23-feat_improve_file_parsing_error_display
Jan 23, 2026
Merged

feat: improve file parsing error display#123
branchseer merged 2 commits intomainfrom
01-23-feat_improve_file_parsing_error_display

Conversation

@branchseer
Copy link
Copy Markdown
Member

@branchseer branchseer commented Jan 23, 2026

Improve error handling and display in Vite crates

Before:

image.png

After:

image.png

This PR enhances error handling and display across several Vite crates:

  1. Simplifies AbsolutePath debug implementation
  2. Improves error messages with better context:
    • Adds file paths to JSON/YAML parsing errors
    • Enhances task call stack display logic
    • Makes error messages more user-friendly
  3. Introduces FileWithPath to bundle file handles with their paths for better error context
  4. Updates error types to include more specific information about failures

These changes make debugging easier by providing more context when errors occur, especially for file parsing operations.

Copy link
Copy Markdown
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@branchseer branchseer marked this pull request as ready for review January 23, 2026 02:51
@branchseer branchseer merged commit f39c872 into main Jan 23, 2026
7 checks passed
@branchseer branchseer deleted the 01-23-feat_improve_file_parsing_error_display branch January 23, 2026 03:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants