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

unhandled error when controller is not present #37

Open
TheRockyOng opened this issue Apr 30, 2014 · 3 comments
Open

unhandled error when controller is not present #37

TheRockyOng opened this issue Apr 30, 2014 · 3 comments

Comments

@TheRockyOng
Copy link

currently exception is not handled. need to present with human readable error message as well

@fruityfred
Copy link

I have the same error. Is there something to do to avoid it?

@fruityfred
Copy link

Adding an error handler in linuxConnector.js prevents the exception from being thrown, and the application keeps on running ;)

After this (around line 75):

controller = new joystick(0, 3500, 350);

add:

controller.on('error', function (err) {
    console.log("Joystick error: ", err);
});

@rdepena
Copy link
Owner

rdepena commented Apr 13, 2015

nice, will include.

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