From 50ee03e3f0a44197722e6c3e85d1f60c48403576 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 15 Sep 2008 02:36:50 -0400 Subject: Fixed the way that nested caught exceptions are rethrown, and how value expressions are displayed when errors are found in them. --- src/textual.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/textual.cc') 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; } } -- cgit v1.2.3