News for hackers. Stuff that matters.
Re:Do Not Log by simion314 on Wednesday January 05, 2022 @11:23AM (#29810951)
> Catching just to log something is generally wrong

Yes, but you should catch as soon as possible (or validate stuff as soon ass possible) and re-throw with a better error message if possible. You will thank yourself when some problem appears and instead of a random "errorcode 123" you get a detailed message like "Operation Xyz failed with errorcode 123";

There are no comments on this comment yet.