I decided to remove the Js.String.make call from the internal implementation and pass the raw Js.Promise.error object to the errorTransformer user provided function. I believe this way is the least intrusive way of allowing the caller to implement the error calling pattern.
I decided to remove the
Js.String.make
call from the internal implementation and pass the rawJs.Promise.error
object to theerrorTransformer
user provided function. I believe this way is the least intrusive way of allowing the caller to implement the error calling pattern.