martyjs / marty

A Javascript library for state management in React applications
http://martyjs.org
MIT License
1.09k stars 76 forks source link

Obtuse error messages when action causes an error in a store's handler #128

Closed optilude closed 9 years ago

optilude commented 9 years ago

If an action triggers a store handler which contains an error (raises an exception), it's all too common to see this obtuse error message in the console (Chrome):

DOMException: Failed to execute 'postMessage' on 'Window': An object could not be cloned.

The stack trace is not helpful in identifying where the problem occurs. This makes it quite hard to debug any such errors!

jhollingworth commented 9 years ago

Hey, this bug was fixed yesterday. If you update to v0.8.11 the problem should be resolved. Also, if you have Marty Developer Tools installed, you should update to v0.8.11 as well.

optilude commented 9 years ago

That's great service - fixing the defect the day before I raise it ;) Thanks!

jhollingworth commented 9 years ago

no problem, happy to help :smile: