~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/logging_gearman/logging_gearman.cc

  • Committer: Brian Aker
  • Date: 2011-02-01 02:51:01 UTC
  • mto: (2132.1.1 drizzle-build)
  • mto: This revision was merged to the branch mainline in revision 2134.
  • Revision ID: brian@tangent.org-20110201025101-yaj5kkdk2towo6ou
Merge in error message rework. Many error messages are fixed in this patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
181
181
 
182
182
    if (gearman_client_create(&_gearman_client) == NULL)
183
183
    {
184
 
      char errmsg[STRERROR_MAX];
185
 
      strerror_r(errno, errmsg, sizeof(errmsg));
186
 
      drizzled::errmsg_printf(ERRMSG_LVL_ERROR, _("fail gearman_client_create(): %s"),
187
 
                              errmsg);
 
184
      sql_perror(_("fail gearman_client_create()"));
188
185
      return;
189
186
    }
190
187
 
194
191
                                   host.c_str(), 0);
195
192
    if (ret != GEARMAN_SUCCESS)
196
193
    {
197
 
      drizzled::errmsg_printf(ERRMSG_LVL_ERROR, _("fail gearman_client_add_server(): %s"),
 
194
      drizzled::errmsg_printf(error::ERROR, _("fail gearman_client_add_server(): %s"),
198
195
                              gearman_client_error(&_gearman_client));
199
196
      return;
200
197
    }