mirror of
https://github.com/eyre-rs/eyre.git
synced 2025-10-02 07:21:36 +00:00

* Add must-install feature, so that a non-default handler can be the only handler consuming .text. * Provide a better panic message if `must-install` feature is enabled. Co-authored-by: Jane Lusby <jlusby42@gmail.com> * Bump version because new feature was added. * Convert must-install feature to auto-install to avoid negative features. * Add ability to manually install DefaultHandler (for when auto-install is disabled). * Ensure doctests pass when auto-install feature is disabled. * Integration tests now succeed without auto-install feature. * Add integration test for when auto-install feature is disabled. * Add auto-install feature testing to CI. * cargo fmt. Co-authored-by: Jane Lusby <jlusby42@gmail.com> Co-authored-by: Jane Lusby <jlusby@yaah.dev>
14 lines
226 B
Rust
14 lines
226 B
Rust
mod common;
|
|
|
|
use crate::common::maybe_install_handler;
|
|
|
|
#[test]
|
|
fn test_context() {
|
|
use eyre::{eyre, Report};
|
|
|
|
maybe_install_handler().unwrap();
|
|
|
|
let error: Report = eyre!("oh no!");
|
|
let _ = error.context();
|
|
}
|