* use GError in various mu_maildir function to return error info

This commit is contained in:
Dirk-Jan C. Binnema
2010-12-05 16:29:53 +02:00
parent 8b70e6bace
commit 68af173246
6 changed files with 100 additions and 57 deletions

View File

@ -47,8 +47,14 @@ mu_cmd_mkdir (MuConfigOptions *opts)
i = 1;
while (opts->params[i]) {
GError *err;
err = NULL;
if (!mu_maildir_mkdir (opts->params[i], opts->dirmode,
FALSE))
FALSE, &err))
if (err && err->message) {
g_warning ("%s", err->message);
g_error_free (err);
}
return FALSE;
++i;
}