summaryrefslogtreecommitdiff
path: root/src/work.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-02 15:54:28 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-02 15:54:28 -0400
commitc1cb06e00922ba5c15c128bab05c71220077fdce (patch)
treedb00cc04a338c33c540c3be98c53742a1e2902ca /src/work.cc
parentbd9ffed9db00e31e4ad526f4558d0d2929c8ac39 (diff)
downloadfork-ledger-c1cb06e00922ba5c15c128bab05c71220077fdce.tar.gz
fork-ledger-c1cb06e00922ba5c15c128bab05c71220077fdce.tar.bz2
fork-ledger-c1cb06e00922ba5c15c128bab05c71220077fdce.zip
Updated some internal documentation.
Diffstat (limited to 'src/work.cc')
-rw-r--r--src/work.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/work.cc b/src/work.cc
index 95f3dee4..bc14bd04 100644
--- a/src/work.cc
+++ b/src/work.cc
@@ -65,9 +65,7 @@ void handle_debug_options(int argc, char * argv[])
_trace_level = boost::lexical_cast<int>(argv[i + 1]);
}
catch (const boost::bad_lexical_cast& e) {
- std::cerr << "Argument to --trace must be an integer."
- << std::endl;
- throw int(1);
+ throw std::logic_error("Argument to --trace must be an integer");
}
i++;
#endif