]> git.lyx.org Git - features.git/commitdiff
Improve a layout LYXERR0 message
authorScott Kostyshak <skostysh@lyx.org>
Tue, 9 Aug 2016 03:41:59 +0000 (23:41 -0400)
committerScott Kostyshak <skostysh@lyx.org>
Tue, 9 Aug 2016 03:44:27 +0000 (23:44 -0400)
The name of the layout is now included in an error message about
layouts. This will help with finding the root issue of several
documents we have.

src/output_latex.cpp

index 370b7a0842e75d010b10d11e9c9358e9831e165b..b925496a36e30e2a0181e45f4568529d155afb2d 100644 (file)
@@ -1190,8 +1190,9 @@ void latexParagraphs(Buffer const & buf,
                if (layout.intitle) {
                        if (already_title) {
                                LYXERR0("Error in latexParagraphs: You"
-                                       " should not mix title layouts"
-                                       " with normal ones.");
+                                       " are using a layout (\"" << layout.name() << "\")"
+                                       " intended for the title, after using"
+                                       " non-title layouts.");
                        } else if (!was_title) {
                                was_title = true;
                                if (tclass.titletype() == TITLE_ENVIRONMENT) {