On 04/14/2010 07:54 AM, v...@lyx.org wrote:
Author: vfr
Date: Wed Apr 14 13:54:12 2010
New Revision: 34130
URL: http://www.lyx.org/trac/changeset/34130
Log:
Fix bug #6651: No error messages when module dependencies are not fulfilled.
We need to throw the ExceptionMessage's.
Can you tell me what happens when this exception gets thrown? (I have no
idea why I didn't throw it.)
rh
Modified:
lyx-devel/trunk/src/TextClass.cpp
Modified: lyx-devel/trunk/src/TextClass.cpp
==============================================================================
--- lyx-devel/trunk/src/TextClass.cpp Tue Apr 13 20:56:28 2010 (r34129)
+++ lyx-devel/trunk/src/TextClass.cpp Wed Apr 14 13:54:12 2010 (r34130)
@@ -1278,7 +1278,7 @@
"this document but has not been
found in the list of\n"
"available modules. If you recently
installed it, you\n"
"probably need to reconfigure
LyX.\n"), from_utf8(modName));
- ExceptionMessage(WarningException,_("Module not
available"),
+ throw ExceptionMessage(WarningException,_("Module not
available"),
msg + _("Some layouts may not be
available."));
continue;
}
@@ -1287,7 +1287,7 @@
bformat(_("The module %1$s requires
a package that is\n"
"not available in your LaTeX
installation. LaTeX output\n"
"may not be possible.\n"),
from_utf8(modName));
- ExceptionMessage(WarningException, _("Package not
available"), msg);
+ throw ExceptionMessage(WarningException, _("Package not
available"), msg);
}
FileName layout_file = libFileSearch("layouts",
lm->getFilename());
if (!doc_class.read(layout_file, TextClass::MODULE)) {