Fork me on GitHub
#mount
<
2016-06-21
>
manderson18:06:08

Is there a recommended way in mount to handle a situation where the :start initialization of a state throws an exception?

tolitius18:06:23

@manderson: depends on what behavior you need. in case the whole app should fail fast, nothing is really needed, as it would throw while starting a state. In case you need to do something on failure you can wrap a start function in try/catch. there is an ongoing discussion here: https://github.com/tolitius/mount/issues/50 with some more details

manderson18:06:25

Ok, makes sense. Thanks for the link; I'll read through that.

tolitius18:06:19

sure, let me know if you have any more questions