Fix error message displayed when cannot create config folder
This commit is contained in:
parent
bc651b0222
commit
6091c8e75e
@ -363,10 +363,22 @@ check_prefs_dir (void)
|
|||||||
{
|
{
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
if (mkdir (dir) != 0)
|
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
|
#else
|
||||||
if (mkdir (dir, S_IRUSR | S_IWUSR | S_IXUSR) != 0)
|
if (mkdir (dir, S_IRUSR | S_IWUSR | S_IXUSR) != 0)
|
||||||
|
{
|
||||||
|
fe_message (_("Cannot create ~/.config/hexchat"), FE_MSG_ERROR);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
fe_message (_("Cannot create ~/.xchat2"), FE_MSG_ERROR);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user