mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 13:31:49 +00:00
error out if the sysdir argument is erroneous. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24499 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
329461c700
commit
ec148ab77f
@ -631,7 +631,7 @@ FileName const get_default_user_support_dir(FileName const & home_dir)
|
||||
|
||||
|
||||
// Check that directory @c dir contains @c file.
|
||||
// Else emit a warning about an invalid @c command_line_switch.
|
||||
// Else emit an error message about an invalid @c command_line_switch.
|
||||
bool check_command_line_dir(string const & dir,
|
||||
string const & file,
|
||||
string const & command_line_switch)
|
||||
@ -639,7 +639,7 @@ bool check_command_line_dir(string const & dir,
|
||||
FileName const abs_path = fileSearch(dir, file);
|
||||
if (abs_path.empty()) {
|
||||
// FIXME UNICODE
|
||||
throw ExceptionMessage(WarningException, _("File not found"), bformat(
|
||||
throw ExceptionMessage(ErrorException, _("File not found"), bformat(
|
||||
_("Invalid %1$s switch.\nDirectory %2$s does not contain %3$s."),
|
||||
from_utf8(command_line_switch), from_utf8(dir),
|
||||
from_utf8(file)));
|
||||
|
Loading…
Reference in New Issue
Block a user