Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
fao_
10y ago
0 comments
Share
If you're repeating yourself, then you could possibly abuse higher class functions to automatically generate error handling?
0 comments
default
newest
oldest
doublerebel
10y ago
Yes, there are libs like errTo [1] and iced-error/make_esc [2]. Not to mention Promise.promisify(). Long solved problem.
[1]:
https://www.npmjs.com/package/errto
[2]:
https://www.npmjs.com/package/iced-error
j
/
k
navigate · click thread line to collapse