]> git.lyx.org Git - features.git/commitdiff
Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=4791
authorAbdelrazak Younes <younes@lyx.org>
Fri, 25 Apr 2008 08:34:09 +0000 (08:34 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Fri, 25 Apr 2008 08:34:09 +0000 (08:34 +0000)
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

src/support/Package.cpp

index 241a708afab6663e2968b5ce642cdc58bc2c2fce..3d6c2971d0839c709d16c86c5859ca365f4cd40b 100644 (file)
@@ -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)));