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

Fail early on unsupported platforms #428

Open
ikurek opened this issue Jun 13, 2022 · 0 comments
Open

Fail early on unsupported platforms #428

ikurek opened this issue Jun 13, 2022 · 0 comments
Labels
enhancement New feature or improved functionality.

Comments

@ikurek
Copy link
Contributor

ikurek commented Jun 13, 2022

Right now, when used on an unsupported platform (for example on Flutter Web) the {{ably-flutter}} plugin will fail with {{Unsupported operation}} error, only when a method from Ably is called on the platform side. This doesn't really explain what happened to the user, and it may be hard to understand the reason behind the error.

It may be a good idea to implement a more specific, user-facing error and make sure that it get's thrown on runtime as soon as the code is ran on an unsupported platform.

@ikurek ikurek added the enhancement New feature or improved functionality. label Jun 13, 2022
@ikurek ikurek changed the title Fail on unsupported platforms Fail early on unsupported platforms Jun 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or improved functionality.
Development

No branches or pull requests

1 participant