Give a better error message for missing layout include files

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15238 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Georg Baum 2006-10-04 16:18:53 +00:00
parent 411024615c
commit 698763da0f
2 changed files with 9 additions and 3 deletions

View File

@ -251,11 +251,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;

View File

@ -46,6 +46,8 @@ What's new
- Fix cursor positioning when opening the VSpace dialog (bug 2869).
- Give a better error message for missing layout include files
* Build/installation: