From e2e27d1809684a6745d7b449561aeb5f30a42a74 Mon Sep 17 00:00:00 2001 From: dequis Date: Sun, 2 Sep 2018 01:20:09 -0300 Subject: [PATCH] Improve error message when failing to create the config dir --- src/core/settings.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/settings.c b/src/core/settings.c index 3ebb9e4a..5fc37ded 100644 --- a/src/core/settings.c +++ b/src/core/settings.c @@ -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"