From 906b27800836015d2d442d905bce9215f55d36e7 Mon Sep 17 00:00:00 2001 From: Georg Baum Date: Wed, 4 Oct 2006 16:22:38 +0000 Subject: [PATCH] Give a better error message for missing layout include files git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15239 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/lyxtextclass.C | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/lyxtextclass.C b/src/lyxtextclass.C index 7eae766cff..8ccde35996 100644 --- a/src/lyxtextclass.C +++ b/src/lyxtextclass.C @@ -257,11 +257,15 @@ bool LyXTextClass::read(string const & filename, bool merge) case TC_INPUT: // Include file if (lexrc.next()) { - string tmp = libFileSearch("layouts", - lexrc.getString(), + string const inc = lexrc.getString(); + string tmp = libFileSearch("layouts", inc, "layout"); - if (read(tmp, true)) { + if (tmp.empty()) { + lexrc.printError("Could not find input" + "file: " + inc); + error = true; + } else if (read(tmp, true)) { lexrc.printError("Error reading input" "file: "+tmp); error = true; -- 2.39.2