107
102
/* Use find_if instead of foreach so that we can collect return codes */
108
103
vector<plugin::ErrorMessage *>::iterator iter=
109
104
find_if(all_errmsg_handler.begin(), all_errmsg_handler.end(),
110
service::errmsg_priv::Print(session, priority, format, ap));
105
Print(session, priority, format, ap));
111
106
/* If iter is == end() here, that means that all of the plugins returned
112
107
* false, which in this case means they all succeeded. Since we want to
113
108
* return false on success, we return the value of the two being !=