Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Whatever context you deem appropriate at the time of writing that message. Don't overfocus on the example. It could be the request ID, the customer's name — anything that's relevant to that particular call.




Well if there is useful context Rust let's you add it. You can easily wrap the io error in something specific to your application or just use anyhow with .context("...")? which is what most people do in application code.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: