diff options
author | John Wiegley <johnw@newartisans.com> | 2008-09-15 02:36:50 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-09-15 02:36:50 -0400 |
commit | 50ee03e3f0a44197722e6c3e85d1f60c48403576 (patch) | |
tree | 17e0c914e8493cb8028b5d02b64cf6f6f2b83b5e /src/expr.cc | |
parent | b73c31c7259ee12bf746f477c9c9919fe72d5394 (diff) | |
download | fork-ledger-50ee03e3f0a44197722e6c3e85d1f60c48403576.tar.gz fork-ledger-50ee03e3f0a44197722e6c3e85d1f60c48403576.tar.bz2 fork-ledger-50ee03e3f0a44197722e6c3e85d1f60c48403576.zip |
Fixed the way that nested caught exceptions are rethrown, and how value
expressions are displayed when errors are found in them.
Diffstat (limited to 'src/expr.cc')
-rw-r--r-- | src/expr.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/expr.cc b/src/expr.cc index 73bf2993..99319c9b 100644 --- a/src/expr.cc +++ b/src/expr.cc @@ -96,13 +96,14 @@ void expr_t::parse(const string& _str, const unsigned int flags) compiled = false; } -void expr_t::parse(std::istream& in, const unsigned int flags) +void expr_t::parse(std::istream& in, const unsigned int flags, + const string * original_string) { if (! parser.get()) throw_(parse_error, "Value expression parser not initialized"); str = "<stream>"; - ptr = parser->parse(in, flags); + ptr = parser->parse(in, flags, original_string); compiled = false; } |