]> 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>
Fri, 19 Aug 2016 01:07:38 +0000 (21:07 -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.

(cherry picked from commit c949268da7a56368cf848199f37659c218a57808)

src/output_latex.cpp

index 5d385e5e09929b54bed248091641bd30007a3b67..c5079beb30f3d7ca586af6fe1417faf0152984bf 100644 (file)
@@ -1189,8 +1189,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) {