Comment

Comment by krysp

It gives you control over the output of your program (and as you mention, the exact error code - which probably should be 1 in this instance).

It's often more user friendly to print a short human-readable message (or nothing) than to dump a huge stack trace. YMMV, if this is an internal dev tool then the opposite might be true!

parent krysp 2 years ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton