summaryrefslogtreecommitdiffstats
path: root/src/manifest_parser.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/manifest_parser.cc')
-rw-r--r--src/manifest_parser.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/manifest_parser.cc b/src/manifest_parser.cc
index 057e12c..405e244 100644
--- a/src/manifest_parser.cc
+++ b/src/manifest_parser.cc
@@ -76,8 +76,9 @@ bool ManifestParser::Parse(const string& filename, const string& input,
if (!ParseFileInclude(true, err))
return false;
break;
- case Lexer::ERROR:
- return lexer_.Error("lexing error", err);
+ case Lexer::ERROR: {
+ return lexer_.Error(lexer_.DescribeLastError(), err);
+ }
case Lexer::TEOF:
return true;
case Lexer::NEWLINE: