qmuntal / stateless

Go library for creating finite state machines
BSD 2-Clause "Simplified" License
898 stars 47 forks source link

Update panic message for unexpected parameter count #70

Closed GerardVivancos closed 8 months ago

GerardVivancos commented 8 months 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 8 months ago

Thanks, it makes sense.