mirror of https://github.com/djcb/mu.git
* mu-maildir: use GError, not g_warning
This commit is contained in:
parent
b00a85ec07
commit
2950d29ca7
|
@ -61,13 +61,13 @@ create_maildir (const char *path, mode_t mode, GError **err)
|
||||||
/* make sure it does not exist yet */
|
/* make sure it does not exist yet */
|
||||||
if (access (path, F_OK) == 0)
|
if (access (path, F_OK) == 0)
|
||||||
errno = EEXIST;
|
errno = EEXIST;
|
||||||
|
|
||||||
if (errno != ENOENT) {
|
if (errno != ENOENT) {
|
||||||
g_warning ("%s", strerror (errno));
|
g_set_error (err, 0, MU_ERROR_FILE, "%s", strerror (errno));
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i != G_N_ELEMENTS(subdirs); ++i) {
|
for (i = 0; i != G_N_ELEMENTS(subdirs); ++i) {
|
||||||
|
|
||||||
const char *fullpath;
|
const char *fullpath;
|
||||||
int rv;
|
int rv;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue