← findnix.eu
🎬 video.infosec.exchange video.infosec.exchange

Using anyhow to handle errors in my Rust changelog builder

⏱ 2:07:25 🌐 video.infosec.exchange

Let's fix our messy error handling in our Rust `towncrier` clone by using the `anyhow` library and adding `context()` calls to describe what went wrong. Can we match the output of `towncrier` in different circumstances? Do we actually want to match it exactly, or can we do better? You can find the code at https://codeberg.org/andybalaam/changelog-builder Read my blog at https://artificialworlds.net/blog Follow me on mastodon: [@andybalaam@mastodon.social](https://mastodon.social/@andybalaam)

β†—https://video.infosec.exchange/w/vhHv6Ns7wGpUt1MZyN6KGW
rustlang programming anyhow
Indexiert von findnix.eu Β· Eigene Seite einreichen