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/textual.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/textual.cc')
-rw-r--r-- | src/textual.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/textual.cc b/src/textual.cc index 39b1f55f..e167467f 100644 --- a/src/textual.cc +++ b/src/textual.cc @@ -223,7 +223,7 @@ xact_t * parse_xact(char * line, account_t * account, entry_t * entry = NULL) } catch (const std::exception& err) { add_error_context("While parsing transaction amount:\n"); - throw err; + throw; } } @@ -270,7 +270,7 @@ xact_t * parse_xact(char * line, account_t * account, entry_t * entry = NULL) } catch (const std::exception& err) { add_error_context("While parsing transaction cost:\n"); - throw err; + throw; } if (xact->cost->sign() < 0) @@ -389,7 +389,7 @@ xact_t * parse_xact(char * line, account_t * account, entry_t * entry = NULL) } catch (const std::exception& err) { add_error_context("While parsing assigned balance:\n"); - throw err; + throw; } } } @@ -434,7 +434,7 @@ xact_t * parse_xact(char * line, account_t * account, entry_t * entry = NULL) catch (const std::exception& err) { add_error_context("While parsing transaction:\n"); add_error_context(line_context(line, in.tellg())); - throw err; + throw; } } |