Comment

Comment by reader_mode

I think this code is bad because it uses if/else (it should be if not abort) and it only tests/handles one error case and the log is not very valuable, would be much better to wrap the block in try catch and capture all exceptions (should be fairly obvious from exception that stripe.handleCardPayment doesn't exist)
parent reader_mode 5 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