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

Improve errors for incorrect constructor args #1702

Merged

Conversation

lawrence-forooghian
Copy link
Collaborator

This fixes the regression that I introduced in e8c3012, which stopped the user from getting a useful error message when not passing any args to the constructor. I’ve also introduced a wider range of error messages to give the user useful guidance depending on which variant of the library they’re using.

Resolves #1700.

This fixes the regression that I introduced in e8c3012, which stopped
the user from getting a useful error message when not passing any args
to the constructor. I’ve also introduced a wider range of error messages
to give the user useful guidance depending on which variant of the
library they’re using.

Resolves #1700.
Copy link
Member

@owenpearson owenpearson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks for fixing!

src/common/lib/client/defaultrealtime.ts Show resolved Hide resolved
@lawrence-forooghian lawrence-forooghian merged commit 48883e1 into integration/v2 Mar 19, 2024
12 checks passed
@lawrence-forooghian lawrence-forooghian deleted the initialize-client-without-options branch March 19, 2024 15:06
@VeskeR VeskeR mentioned this pull request Mar 20, 2024
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants