diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2016-06-01 13:19:40 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2016-06-01 13:19:40 +0100 |
commit | ffd3018fe7495acace888a1098828978e98f4fdd (patch) | |
tree | c10711b6a3463394d012bc549ebde43c91430fd7 | |
parent | Parallel extract and lookup (diff) | |
download | gentoobrowse-api-ffd3018fe7495acace888a1098828978e98f4fdd.tar.bz2 gentoobrowse-api-ffd3018fe7495acace888a1098828978e98f4fdd.tar.xz gentoobrowse-api-ffd3018fe7495acace888a1098828978e98f4fdd.zip |
Include parser state on lexer match failure
-rw-r--r-- | gentoobrowse-api/service/utils/lexer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gentoobrowse-api/service/utils/lexer.cpp b/gentoobrowse-api/service/utils/lexer.cpp index 8ed83b8..a3352f8 100644 --- a/gentoobrowse-api/service/utils/lexer.cpp +++ b/gentoobrowse-api/service/utils/lexer.cpp @@ -94,7 +94,7 @@ namespace Gentoo { } } if (!selected) { - throw std::runtime_error(std::string("Unexpected input at ") + (string + es.position)); + throw std::runtime_error(std::string("Unexpected input in state (" + es.getState() + ") at ") + (string + es.position)); } es.pattern = boost::get<1>(*selected); const auto & h = boost::get<2>(*selected); |