Closed bvanjoi closed 10 months ago
miette::Diagnostic
maybe the case for fitting your need ;-).
It's unfortunate that we called it Diagnostic
as well, but if you need to store multiple errors, use miette::Diagnostic
instead.
errors: Vec<dyn miette::Diagnostic>)
What problem does this feature solve?
Diagnostic
should not contain concrete fields and it should be a trait that guides a series of actions.What does the proposed API of configuration look like?
The error handler in
rspack_error
:Different stages have their own unique errors, for example: