Might want to setup a var like $action_matched = false, pass it to the event, and then only trigger error if it still is false.