Commit Graph

12 Commits

Author SHA1 Message Date
Michael Pfaff 8f1c7d9765
Refactored Context 2023-07-01 11:41:21 -04:00
Michael Pfaff 457328945c
Rename ContextElem to Detail 2023-06-29 11:55:21 -04:00
Michael Pfaff 639e5835e4
Add an Error element 2023-06-29 11:48:51 -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 c373ad327e Add missing #[track_caller] 2023-02-06 09:06:19 -05:00
Michael Pfaff bbc7df28d8
Refactoring, improve output 2023-01-17 07:29:58 -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
Michael Pfaff a3058961f8
Seems good 2022-07-21 20:40:44 -04:00
Michael Pfaff fdb14c22ec
Where was I? 2022-07-21 20:39:47 -04:00