Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
speedgoose
4y ago
0 comments
Save
Share
Yes it's not very shinning there. I would also throw the error instead of printing the error to the console and returning undefined.
0 comments
2 comments · 1 top-level
top
newest
oldest
ponyous
4y ago
· 1 in thread
You are in a callback there. Goodbye your error!
speedgoose
OP
4y ago
Oh right. I once made a layer on top of the redis client to use promises because callbacks are a pain to deal with.
j
/
k
navigate · click thread line to collapse