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

Please throw an error for invalid events #748

Closed
OmgImAlexis opened this issue Dec 10, 2016 · 0 comments
Closed

Please throw an error for invalid events #748

OmgImAlexis opened this issue Dec 10, 2016 · 0 comments
Milestone

Comments

@OmgImAlexis
Copy link

Currently if you pass an invalid/unused string to lock.on it just fails silently; because of this I spent the whole day trying to workout what was wrong only to finally realise that I had a typo in the string I was passing.

This should throw an error instead of doing nothing.

this.lock.on('INVAID_STRING', (error) => {
});
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

3 participants