mirror of
https://github.com/irssi/irssi.git
synced 2025-02-02 15:08:01 -05:00
Improve error message when failing to create the config dir
This commit is contained in:
parent
1bbd9f393c
commit
e2e27d1809
@ -762,7 +762,8 @@ static void init_configfile(void)
|
|||||||
if (stat(get_irssi_dir(), &statbuf) != 0) {
|
if (stat(get_irssi_dir(), &statbuf) != 0) {
|
||||||
/* ~/.irssi not found, create it. */
|
/* ~/.irssi not found, create it. */
|
||||||
if (g_mkdir_with_parents(get_irssi_dir(), 0700) != 0) {
|
if (g_mkdir_with_parents(get_irssi_dir(), 0700) != 0) {
|
||||||
g_error("Couldn't create %s directory", get_irssi_dir());
|
g_error("Couldn't create %s directory: %s",
|
||||||
|
get_irssi_dir(), g_strerror(errno));
|
||||||
}
|
}
|
||||||
} else if (!S_ISDIR(statbuf.st_mode)) {
|
} else if (!S_ISDIR(statbuf.st_mode)) {
|
||||||
g_error("%s is not a directory.\n"
|
g_error("%s is not a directory.\n"
|
||||||
|
Loading…
Reference in New Issue
Block a user