An alert window is opened on event catching from Options::load (#4428)

This commit is contained in:
Hombre
2018-03-09 22:08:29 +01:00
parent 185f072481
commit 01f8f4123a
2 changed files with 10 additions and 9 deletions

View File

@@ -102,7 +102,8 @@ void Options::updatePaths()
g_mkdir_with_parents (profilePath.c_str (), 511);
if (!checkDirPath (profilePath, "")) { // had problems with mkdir_with_parents return value on OS X, just check dir again
printf ("Error: creation of the user's processing profile directory \"%s\" failed!\n", profilePath.c_str());
Glib::ustring msg = Glib::ustring::compose ("Creation of the user's processing profile directory \"%1\" failed!\n", profilePath);
throw Error (msg);
}
}
@@ -130,7 +131,8 @@ void Options::updatePaths()
g_mkdir_with_parents (tmpPath.c_str (), 511);
if (!checkDirPath (tmpPath, "")) {
printf ("Error: creation of the user's processing profile directory \"%s\" failed!\n", tmpPath.c_str());
Glib::ustring msg = Glib::ustring::compose ("Creation of the user's processing profile directory \"%1\" failed!\n", tmpPath.c_str());
throw Error (msg);
}
}