qmuntal / stateless

Go library for creating finite state machines
https://wikipedia.org/wiki/Finite-state_machine
BSD 2-Clause "Simplified" License
972 stars 53 forks source link

Update panic message for unexpected parameter count #70

Closed GerardVivancos closed 1 year ago

GerardVivancos commented 1 year ago

Update panic message when the amount of parameters does not match expectations.

A small change, but when I triggered this panic from my application I was confused because I had defined one parameter but failed to supply it and got this:

Too many parameters have been supplied. Expecting '1' but got '0'
qmuntal commented 1 year ago

Thanks, it makes sense.