From b3a6f51f30a62f13d7ac6a00dd545589cf86fc56 Mon Sep 17 00:00:00 2001 From: Scott Kostyshak Date: Mon, 8 Aug 2016 23:41:59 -0400 Subject: [PATCH] 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. (cherry picked from commit c949268da7a56368cf848199f37659c218a57808) --- src/output_latex.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/output_latex.cpp b/src/output_latex.cpp index 5d385e5e09..c5079beb30 100644 --- a/src/output_latex.cpp +++ b/src/output_latex.cpp @@ -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) { -- 2.39.5