What's the recommended way to do error handling? S...
# general
w
What's the recommended way to do error handling? Say I want to check a condition in
index.ts
and fail early
c
As of now, throwing an error is the best way to fail early. So simply
throw new Error("my failure message");
.
👍 1