added exception message for when the action is not set