Show useful error messages for promotion rules and actions

Fixes #3358