Closed thedavidmeister closed 6 years ago
(prom/catch
(fn [err]
(.error js/console (.-message err) err))))))
Hey, asking for Node.js - why are promises harder to debug here? Is there anything we can do to have a better promises story for people transpiling clojure/cjs to Node?
@benjamingr are you asking about this library specifically? I find the debugging process is fairly straight forward with promises. Simply catch and prn at the top most level and use pretty errors deeper down.
Lots of useful info gets thrown away, making promises harder to debug than necessary.
compare: