goatslacker/alt

Error displaying when dispatching

bsdo64 opened this issue · 1 comments

How about displaying errors when dispatching?

Using some third party libs, errors are not be displayed.
When I have any javascript code error, alt just throw error nothing displayed.

In here,

const handleDispatch = (f, payload) => {

Sorry, I didn't know listening error event.

Just add some doc error. Error handler property is

this.on('error', ({error, payload, state}) => {

});

In doc,
http://alt.js.org/docs/lifecycleListeners#Error