]> git.lyx.org Git - lyx.git/blobdiff - src/Lexer.cpp
Some comments.
[lyx.git] / src / Lexer.cpp
index 008b0cc9620417395a933b23d46fe0a0358c1514..08b2f08077048585d44a09c37fcaefcfaaa7d937 100644 (file)
@@ -173,7 +173,9 @@ void Lexer::Pimpl::printError(string const & message) const
 {
        string const tmpmsg = subst(message, "$$Token", getString());
        lyxerr << "LyX: " << tmpmsg << " [around line " << lineno
-               << " of file " << to_utf8(makeDisplayPath(name)) << ']' << endl;
+               << " of file " << to_utf8(makeDisplayPath(name))
+               << " current token: '" << getString() << "'"
+               << " context: '" << context << "']" << endl;
 }
 
 
@@ -760,6 +762,7 @@ bool Lexer::getBool() const
        pimpl_->printError("Bad boolean `$$Token'. "
                                 "Use \"false\" or \"true\"");
        lastReadOk_ = false;
+       return false;
 }