Comments (1)
If it helps, I think this is safe to consider out of scope for Miette.
Having said that, it would be nice to add a mention to the README. Something like:
While you're considering beautiful error outputs for human users of you application...
Have you considered what panic messages look like?
Miette doesn't alter Rust's default panic messages.
You could use a crate like human-panic which does, or even write your ownstd::panic::set_hook
to gain the most flexibility.
I was a bit surprised that the message in human-panic is hardcoded, see: rust-cli/human-panic#54. I wouldn't want to force the exact text they use on users of Miette. Could be a good contribution to human-panic to add a custom message feature (for 2.0.0).
from miette.
Related Issues (20)
- Panic when span is on `\n` in v5.4.1 HOT 6
- SourceCode on Option<impl SourceCode>? HOT 3
- NamedSpan? HOT 1
- miette fails silently when span is wrong HOT 8
- Narratable report handler produces bad output with labels including EOL or EOF
- Optional impl From<OldMiette> for NewMiette HOT 4
- Graphical handler panics when span endpoints are not aligned to char boundaries HOT 1
- Nonempty labels with zero visible width are rendered wrong by graphical handler HOT 3
- License malformed
- Switching out `atty`? HOT 4
- Panic when printing a report containing source code with debug HOT 1
- `SourceSpan` from `LineColumn`? HOT 1
- Related reports render with the severity of the parent report.
- Allow the inner source type of a `NamedSource` to be borrowed directly HOT 1
- More controlability for the `label` HOT 5
- `Severity` should implement `Ord`
- Allow spans in `help` to provide structured suggestions HOT 3
- Backtrace and Spantrace support HOT 5
- Update miette-derive syn dependency to syn 2 HOT 2
- Still print the name of the SourceCode even if all the labels are invalid
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from miette.