* introduce mu_util_g_set_error, a g_set_error wrapper

This commit is contained in:
djcb
2012-04-13 21:58:58 +03:00
parent b63bebfa91
commit ece0bc5bae
3 changed files with 44 additions and 13 deletions

View File

@ -78,8 +78,8 @@ mu_store_new_read_only (const char* xpath, GError **err)
return new _MuStore (xpath);
} catch (const MuStoreError& merr) {
g_set_error (err, MU_ERROR_DOMAIN, merr.mu_error(), "%s",
merr.what().c_str());
mu_util_g_set_error (err, merr.mu_error(), "%s",
merr.what().c_str());
} MU_XAPIAN_CATCH_BLOCK_G_ERROR(err, MU_ERROR_XAPIAN);