diff options
author | Berke Viktor <bviktor@hexchat.org> | 2012-07-21 21:43:14 +0200 |
---|---|---|
committer | Berke Viktor <bviktor@hexchat.org> | 2012-07-21 21:43:14 +0200 |
commit | 6091c8e75e7e8409aadf62494e594784e0e1dd5e (patch) | |
tree | e9630a6b19ab1259e3da7edaf8718c8cc9096a61 | |
parent | bc651b0222a41edcbc40b6a26bdc8ecfe4a7f503 (diff) |
Fix error message displayed when cannot create config folder
-rw-r--r-- | src/common/cfgfiles.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/common/cfgfiles.c b/src/common/cfgfiles.c index c2e4ee1d..522ab2ef 100644 --- a/src/common/cfgfiles.c +++ b/src/common/cfgfiles.c @@ -363,10 +363,22 @@ check_prefs_dir (void) { #ifdef WIN32 if (mkdir (dir) != 0) + { + if (portable_mode ()) + { + fe_message (_("Cannot create .\\config"), FE_MSG_ERROR); + } + else + { + fe_message (_("Cannot create %APPDATA%\\HexChat"), FE_MSG_ERROR); + } + } #else if (mkdir (dir, S_IRUSR | S_IWUSR | S_IXUSR) != 0) + { + fe_message (_("Cannot create ~/.config/hexchat"), FE_MSG_ERROR); + } #endif - fe_message (_("Cannot create ~/.xchat2"), FE_MSG_ERROR); } } |