📦 sw-errors
A Rust library for parsing and displaying error messages in a clearer and more user-friendly way.
✨ Features
- Structured error parsing
- Human-friendly error display
- Support for multiple output formats (JSON, plain text, etc.)
- Easy integration with logging or CLI tools
🚀 Installation
Add this to your Cargo.toml
:
[]
= "0.1"
🛠️ Usage example
use ErrorParser;
🧠 How it works
This library analyzes raw error messages and extracts useful information such as:
- Error type
- Code location
- Root cause (if available)
💡 Motivation
Rust error messages can often be verbose or hard to understand, especially for beginners. This library aims to make them more readable and approachable.
📋 Roadmap
- Parser for common panics
- Support for
anyhow::Error
- Support for
thiserror
- CLI tool to pretty-print errors in the terminal
🤝 Contributing
Contributions are very welcome! Check out the CONTRIBUTING.md file to get started.