A small helper that unwraps with context is handy, but its panics all point to the same line inside the helper.
With #[track_caller], std::panic::Location::caller() and the panic message report where expect_env was called. It costs nothing when nothing panics.
This post only exists in English. The French blog does not list it, and the language switch on this page leads to the French home page.