aboutsummaryrefslogtreecommitdiffstats
path: root/liblll/Parser.cpp
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2016-10-17 20:16:41 +0800
committerGitHub <noreply@github.com>2016-10-17 20:16:41 +0800
commit07d32937fd1aa0860611ce1307f08439317de449 (patch)
treef2a23ddceb8298eaed8e213c92f3bae91f6322c1 /liblll/Parser.cpp
parentcc2a6867a7986b04c3f8013f508df77eab738d19 (diff)
parent8aa50a004fb320b927b96576f085cfbe5f845da6 (diff)
downloaddexon-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.cpp5
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"));
+ }
}