superlifter icon indicating copy to clipboard operation
superlifter copied to clipboard

Don't swallow errors?

Open hden opened this issue 4 years ago • 2 comments

Some system might be need to interpret the error down stream. Maybe we can propagate the errors?

https://github.com/oliyh/superlifter/blob/master/src/superlifter/core.cljc#L90-L95

hden avatar Oct 11 '21 08:10 hden

Hi,

Do you have a specific use-case in mind?

Thanks

oliyh avatar Oct 12 '21 13:10 oliyh

Thanks for replying. We have a centralized error handler which translates the internal error messages to something much more user-friendly. Also, we have some data-transformation process down the promise chain (after superlifter) that might also throw errors. So it's easier for us to have a centralized error handler close to the resolver.

hden avatar Oct 12 '21 13:10 hden