From: Scott Kostyshak Date: Tue, 9 Aug 2016 03:41:59 +0000 (-0400) Subject: Improve a layout LYXERR0 message X-Git-Tag: 2.3.0alpha1~1133 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=c949268da7a56368cf848199f37659c218a57808;p=features.git Improve a layout LYXERR0 message 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. --- diff --git a/src/output_latex.cpp b/src/output_latex.cpp index 370b7a0842..b925496a36 100644 --- a/src/output_latex.cpp +++ b/src/output_latex.cpp @@ -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) {