Make action errors more explicit

It's a pain to debug functions calling each other incorrectly, without knowing which calls are failing.