looplab / fsm

Finite State Machine for Go
Apache License 2.0
2.86k stars 312 forks source link

Return errors as wrapped errors instead of a custom struct #72

Open Luberry opened 3 years ago

Luberry commented 3 years ago

This will allow us to use errors.Is to detect sub errors instead of string comparisons.

maxekman commented 3 years ago

Definitely something I want too. Thanks for bringing this up.

A PR is welcome if you have the time, not sure when I'll get to it.