ResultAsync.from(yourpromise).mapError(e => {}) map error is not being invoked when promise is throwing.