eyre-rs / color-eyre

Custom hooks for colorful human oriented error reports via panics and the eyre crate
Other
958 stars 57 forks source link

Suggestions only displayed when printing the Debug of an error, not Display #153

Closed scullionw closed 2 months ago

scullionw commented 2 months ago

eprintln("{error:?}")

Screenshot 2024-06-19 at 12 22 58 PM

eprintln("{error}")

Screenshot 2024-06-19 at 12 23 40 PM

is this expected?

ten3roberts commented 2 months ago

Yes, the Display format only shows the root cause in a single line, while Debug shows the full error chain, stacktrace, et.al;

This primarily so that other's can print an eyre report inline like we do with Failed to connect to redis...