logoalt Hacker News

vsgherziyesterday at 10:41 PM0 repliesview on HN

This particular one is just how I decided to take context. You could easily keep the original error type and add context onto the struct as an additional field. Or an alternative could be to take a string and the error type. The I’m using someone’s library because I don’t trust myself argument doesn’t really track for me.