In our project we have a lot of related objects with state machine. And it's rather hard to figure out which object has incorrect state with a message like this:
"Cannot transition status via :to_completed from :provisioning (Reason(s): status is invalid". The Pull Request is proposal to add the object class to the message to make it more informative.
In our project we have a lot of related objects with state machine. And it's rather hard to figure out which object has incorrect state with a message like this:
"Cannot transition status via :to_completed from :provisioning (Reason(s): status is invalid". The Pull Request is proposal to add the object class to the message to make it more informative.