Hacker News new | ask | show | jobs
by fireflash38 810 days ago
Don't you get it? You're supposed to manually create the same stack trace by wrapping your errors! Isn't this much more readable?

Error couldn't parse data: couldn't read csv : file not found

Manually appending what you're trying to do at each level that checks for errors seems... Error prone.

1 comments

I know I'm doing something wrong, but trying to programmatically figure out errors in golang always seems to rely on knowledge of a magic string in the error and I find it frustrating