Juergen?
[EMAIL PROTECTED] wrote:
Author: younes
Date: Fri Apr 25 10:34:09 2008
New Revision: 24499
URL: http://www.lyx.org/trac/changeset/24499
Log:
Fix bug http://bugzilla.lyx.org/show_bug.cgi?id=4791
error out if the sysdir argument is erroneous.
Modified:
lyx-devel/trunk/src/support/Package.cpp
Modified: lyx-devel/trunk/src/support/Package.cpp
URL:
http://www.lyx.org/trac/file/lyx-devel/trunk/src/support/Package.cpp?rev=24499
==============================================================================
--- lyx-devel/trunk/src/support/Package.cpp (original)
+++ lyx-devel/trunk/src/support/Package.cpp Fri Apr 25 10:34:09 2008
@@ -631,7 +631,7 @@
// 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 @@
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)));