From: Abdelrazak Younes Date: Fri, 25 Apr 2008 08:34:09 +0000 (+0000) Subject: Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=4791 X-Git-Tag: 1.6.10~4998 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=ec148ab77fbc974fdd9c19b892c1aa3d08bf2301;p=features.git Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=4791 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 --- diff --git a/src/support/Package.cpp b/src/support/Package.cpp index 241a708afa..3d6c2971d0 100644 --- a/src/support/Package.cpp +++ b/src/support/Package.cpp @@ -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)));