* add some GErrors

This commit is contained in:
Dirk-Jan C. Binnema
2010-11-25 21:49:25 +02:00
parent 7362d65216
commit e22149fa46
10 changed files with 85 additions and 46 deletions

View File

@ -100,6 +100,7 @@ insert_or_update_maybe (const char* fullpath, const char* mdir,
MuIndexCallbackData *data, gboolean *updated)
{
MuMsg *msg;
GError *err;
*updated = FALSE;
@ -125,9 +126,9 @@ insert_or_update_maybe (const char* fullpath, const char* mdir,
return MU_OK; /* nope: no need to insert/update! */
} while (0);
msg = mu_msg_new (fullpath, mdir);
err = NULL;
msg = mu_msg_new (fullpath, mdir, &err);
if (!msg) {
g_warning ("%s: failed to create mu_msg for %s",
__FUNCTION__, fullpath);