Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

From Discord: Change in tryPromise behavior when upgrading from 3.2.5 to latest version #4221

Open
effect-bot opened this issue Jan 7, 2025 · 0 comments

Comments

@effect-bot
Copy link

Summary

In the chat, a user named AlexDixon is discussing an issue encountered when upgrading the Effect Typescript library from version 3.2.5 to the latest version. Specifically, they noticed a change in the behavior of tryPromise when it is used with one argument: the error message isn't propagated in the latest version, while it was in the older version.

Michaelarnaldi responds by noting that without a catch, the error becomes an UnknownException, and they express uncertainty about why the message is no longer being carried.

Key Takeaways:

  • There is a change in error propagation behavior in tryPromise between Effect library versions 3.2.5 and the latest.
  • When not using a catch, errors might be transformed into UnknownException.
  • The exact reason for the loss of the error message in new versions is unclear from the messages.

Discord thread

https://discord.com/channels/795981131316985866/1326266797455970407

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant