jakesgordon / javascript-state-machine

A javascript finite state machine library
MIT License
8.69k stars 964 forks source link

State machine hides callback exceptions. (SOLVED) #62

Closed vdzk closed 7 years ago

vdzk commented 10 years ago

When I get an error like "an exception occurred in a caller-provided callback function" is there a way of finding out what that exception might be? If not, this is a huge problem for debugging.

vdzk commented 10 years ago

My apologies. I read through the code and found out that the state machine returns error stack as it's 7th argument.

It would be helpful if this was included in the README.

donaldr commented 9 years ago

I agree; it's still not included in the readme.

etiennechabert commented 8 years ago

+1 This information could be very helpful