logoalt Hacker News

Geezus_42yesterday at 2:23 AM1 replyview on HN

Why not just make your errors more readable and not have to use an extra tool?


Replies

gf000yesterday at 5:33 AM

Well, just write more readable error messages?

How do you make this more readable:

ExceptionName: Dev-given message at Class(line number) at Class(line number) caused by AnotherCauseException: Dev-given message at Class(line number)

It's only the dev given message that may or may not be of good quality, the exact same way as it is in go. It's a plus that you can't accidentally ignore error cases, and even if a dev was lazy, you still have a pretty good record for where a given error case could originate from.