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/option.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/option.cc') 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; } } } -- cgit v1.2.3