Join Slack
Powered by
What's the recommended way to do error handling? S...
# general
w
worried-city-86458
09/09/2019, 9:56 PM
What's the recommended way to do error handling? Say I want to check a condition in
index.ts
and fail early
c
clever-sunset-76585
09/09/2019, 10:17 PM
As of now, throwing an error is the best way to fail early. So simply
throw new Error("my failure message");
.
👍 1
Open in Slack
Previous
Next