diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2016-10-15 20:26:16 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2016-10-15 20:26:16 +0800 |
commit | 8aa50a004fb320b927b96576f085cfbe5f845da6 (patch) | |
tree | f9340978522d62a4d951a68c5085632425b968c4 /liblll/Parser.cpp | |
parent | 7c7a6de87b3c7b574a6bed25c7251df869532056 (diff) | |
download | dexon-solidity-8aa50a004fb320b927b96576f085cfbe5f845da6.tar.gz dexon-solidity-8aa50a004fb320b927b96576f085cfbe5f845da6.tar.zst dexon-solidity-8aa50a004fb320b927b96576f085cfbe5f845da6.zip |
LLL: throw proper ParserException
Diffstat (limited to 'liblll/Parser.cpp')
-rw-r--r-- | liblll/Parser.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/liblll/Parser.cpp b/liblll/Parser.cpp index aa4a4de2..daced13c 100644 --- a/liblll/Parser.cpp +++ b/liblll/Parser.cpp @@ -143,7 +143,8 @@ void dev::eth::parseTreeLLL(string const& _s, sp::utree& o_out) auto ret = s.cbegin(); qi::phrase_parse(ret, s.cend(), element, space, qi::skip_flag::dont_postskip, o_out); for (auto i = ret; i != s.cend(); ++i) - if (!isspace(*i)) - BOOST_THROW_EXCEPTION(std::exception()); + if (!isspace(*i)) { + BOOST_THROW_EXCEPTION(ParserException() << errinfo_comment("Non-whitespace left in parser")); + } } |