Elektrine lite

← Feed

@Mara@hachyderm.io

Post #2227721

2025-11-19 07:45 UTC

@bugaevc@floss.social How would `res || panic!("oh no")` show the Err value in the panic message? res.unwrap() and res.expect("oh no") both show the Err value.

Replies (1)

  • @tauon@possum.city 2025-11-19 09:32

    @Mara@hachyderm.io @bugaevc@floss.social probably res || panic!("oh no: {res}"), but that's subjectively not as nice looking

    Open ##2227722