Comment

Comment by jve

Well in that case, a regular throw can be used. Don't see a need for custom function. From docs:

> The throw keyword causes a terminating error. You can use the throw keyword to stop the processing of a command, function, or script.

parent jve 1 year ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton