1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-01 04:14:16 -04:00

Improve error message when failing to create the config dir

This commit is contained in:
dequis 2018-09-02 01:20:09 -03:00
parent 1bbd9f393c
commit e2e27d1809

View File

@ -762,7 +762,8 @@ static void init_configfile(void)
if (stat(get_irssi_dir(), &statbuf) != 0) {
/* ~/.irssi not found, create it. */
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)) {
g_error("%s is not a directory.\n"