summaryrefslogtreecommitdiff
path: root/src/option.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-09-15 02:36:50 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-09-15 02:36:50 -0400
commit50ee03e3f0a44197722e6c3e85d1f60c48403576 (patch)
tree17e0c914e8493cb8028b5d02b64cf6f6f2b83b5e /src/option.cc
parentb73c31c7259ee12bf746f477c9c9919fe72d5394 (diff)
downloadfork-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/option.cc')
-rw-r--r--src/option.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/option.cc b/src/option.cc
index b633de32..6ece64a1 100644
--- a/src/option.cc
+++ b/src/option.cc
@@ -93,7 +93,7 @@ namespace {
(string(" (-") + opt->short_opt + "):") :
": "));
#endif
- throw err;
+ throw;
}
}
}
@@ -133,7 +133,7 @@ void process_environment(const char ** envp, const string& tag,
catch (const std::exception& err) {
add_error_context("While parsing environment variable option '"
<< *p << "':");
- throw err;
+ throw;
}
}
}