mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-10 10:56:00 +00:00
LyX::exec(): add an alert if sysdir not found.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35282 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
0d54d0e79e
commit
22df620984
15
src/LyX.cpp
15
src/LyX.cpp
@ -284,10 +284,15 @@ int LyX::exec(int & argc, char * argv[])
|
|||||||
// Minimal setting of locale before parsing command line
|
// Minimal setting of locale before parsing command line
|
||||||
try {
|
try {
|
||||||
init_package(os::utf8_argv(0), string(), string(),
|
init_package(os::utf8_argv(0), string(), string(),
|
||||||
top_build_dir_is_one_level_up);
|
top_build_dir_is_one_level_up);
|
||||||
} catch (ExceptionMessage const & message) {
|
} catch (ExceptionMessage const & message) {
|
||||||
LYXERR(Debug::LOCALE, message.title_ + ", " + message.details_);
|
if (message.type_ == ErrorException) {
|
||||||
}
|
Alert::error(message.title_, message.details_);
|
||||||
|
lyx_exit(1);
|
||||||
|
} else if (message.type_ == WarningException) {
|
||||||
|
Alert::warning(message.title_, message.details_);
|
||||||
|
}
|
||||||
|
}
|
||||||
locale_init();
|
locale_init();
|
||||||
|
|
||||||
// Here we need to parse the command line. At least
|
// Here we need to parse the command line. At least
|
||||||
@ -296,8 +301,8 @@ int LyX::exec(int & argc, char * argv[])
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
init_package(os::utf8_argv(0),
|
init_package(os::utf8_argv(0),
|
||||||
cl_system_support, cl_user_support,
|
cl_system_support, cl_user_support,
|
||||||
top_build_dir_is_one_level_up);
|
top_build_dir_is_one_level_up);
|
||||||
} catch (ExceptionMessage const & message) {
|
} catch (ExceptionMessage const & message) {
|
||||||
if (message.type_ == ErrorException) {
|
if (message.type_ == ErrorException) {
|
||||||
Alert::error(message.title_, message.details_);
|
Alert::error(message.title_, message.details_);
|
||||||
|
Loading…
Reference in New Issue
Block a user