Added missing onError handler.

Without this function it was impossible to catch a Parser Error.
Where is the change to the coffee script?