diff options
author | chriseth <chris@ethereum.org> | 2016-10-17 20:16:41 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-17 20:16:41 +0800 |
commit | 07d32937fd1aa0860611ce1307f08439317de449 (patch) | |
tree | f2a23ddceb8298eaed8e213c92f3bae91f6322c1 /liblll/Parser.cpp | |
parent | cc2a6867a7986b04c3f8013f508df77eab738d19 (diff) | |
parent | 8aa50a004fb320b927b96576f085cfbe5f845da6 (diff) | |
download | dexon-solidity-07d32937fd1aa0860611ce1307f08439317de449.tar.gz dexon-solidity-07d32937fd1aa0860611ce1307f08439317de449.tar.zst dexon-solidity-07d32937fd1aa0860611ce1307f08439317de449.zip |
Merge pull request #1229 from ethereum/lll-error-reporting
LLL: better error reporting
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")); + } } |