fatal/
fatal.rs

1use loga::{
2    fatal,
3    err_with,
4    ea,
5    agg_err,
6    err,
7};
8
9fn main() {
10    fatal(
11        agg_err(
12            "The main thing failed",
13            vec![
14                err_with("The primary system exploded", ea!(att1 = "Hi", att2 = 423))
15                    .also(
16                        err_with(
17                            "An incidental_error with a threateningly long message that might be able to wrap if I extend the length somewhat further and then some I guess going by editor width this might not be quite enough",
18                            ea!(
19                                another_attr =
20                                    "This is a very long message, hopefully it gets wrapped somewhere between the start and the end of the screen"
21                            ),
22                        ),
23                    )
24                    .also(err("Nothing much else to add")),
25                err("Just tacking this one on too")
26            ],
27        ),
28    );
29}