Michael Pfaff
fb08be31d4
Small changes
2024-03-20 23:15:16 -04:00
Michael Pfaff
8517408765
Fix a formatting bug
2023-07-03 18:54:46 -04:00
Michael Pfaff
c78b223c67
Adjust formatting
2023-07-03 18:47:56 -04:00
Michael Pfaff
ae7281abac
Adjust formatting
2023-07-03 18:44:28 -04:00
Michael Pfaff
60b4547267
Add a `frame` method to Explain
2023-07-02 15:19:30 -04:00
Michael Pfaff
8a055af669
Optional feature to wrap backtrace in an Arc to enable a full Clone impl
2023-07-01 12:58:07 -04:00
Michael Pfaff
db067003d8
Expose Detail
...
- Add some accessor methods on `Context`
- Wrap some variants in private structs to prevent people from depending
on them
- Add some #[inline]
2023-07-01 12:37:14 -04:00
Michael Pfaff
f416f66d5c
Move Backtrace to a context element, capture along with Location
2023-06-29 02:14:03 -04:00
Michael Pfaff
efa1c3fa37
Refactoring, update docs, API adjustments
2023-06-29 01:51:08 -04:00
Michael Pfaff
9950d96522
Improved output and API
...
- New and improved output format
- Adjusted context API to go along with it
- Nicer output for termination
- Better example
- Better handling of backtraces
- Removed a silly field that is never used
- `How::location` now returns the actual location instead of the context
element
- `Location::caller` is now additionally captured for every call to
`How::context`
- Added a feature that implements `Clone` for `How` (by deferring to the
existing `clone_without_backtrace` method)
2023-06-29 00:00:42 -04:00
Michael Pfaff
710eb48e0c
Tweak context, add some accessors for context, use match instead of map_err/ok_or_else
2023-02-06 09:09:01 -05:00
Michael Pfaff
2a58f55943
Add caller location to context
2023-01-23 19:06:23 -05:00
Michael Pfaff
bbc7df28d8
Refactoring, improve output
2023-01-17 07:29:58 -05:00
Michael Pfaff
41e071bccf
Fix a stupid typo
2022-11-29 13:17:28 -05:00
Michael Pfaff
cbb80c9d3f
Add support for Option and move How definition into its own file
2022-11-09 19:48:43 -05:00