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

Yeah even if you handled this situation without unwrap() if you just went down an error path that didn't panic, the service would likely still be inoperable if every single request went down the error path.




Okay, but if you returned a wrapped error it’d at least be easier to debug.

not necessarily, by default `Result` does not even carry a stack trace



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

Search: