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