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

In the Javascript bridge, when there is no handler with the called handler name, provide a better error message. #120

Closed
oveddan opened this issue Jan 12, 2015 · 1 comment

Comments

@oveddan
Copy link

@oveddan oveddan commented Jan 12, 2015

In the javascript bridge, right now, if you don't have a registered handler for a handlerName, and that handler is called from ios, you get an error message:

TypeError: undefined is not a function (evaluating 'handler(message.data, responseCallback)')

It would be great if you were given a better error message saying "No handler is registered for handlerName #{handlerName}"

@marcuswestin

This comment has been minimized.

Copy link
Owner

@marcuswestin marcuswestin commented Feb 14, 2015

As long as it throws an error, I would accept a PR like that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.