summaryrefslogtreecommitdiff
path: root/main.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-09-08 03:33:56 -0400
committerJohn Wiegley <johnw@newartisans.com>2004-09-08 03:33:56 -0400
commit842359474e36d8406305b874e82c12594dbc154c (patch)
tree49f186fe2cdbc212430bf18dcde972a8b2c33198 /main.cc
parent612e94ceaa1f063250b706530b9515ce77b32c59 (diff)
downloadfork-ledger-842359474e36d8406305b874e82c12594dbc154c.tar.gz
fork-ledger-842359474e36d8406305b874e82c12594dbc154c.tar.bz2
fork-ledger-842359474e36d8406305b874e82c12594dbc154c.zip
optimize python iterations of entries, transactions; use exceptions more
Diffstat (limited to 'main.cc')
-rw-r--r--main.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/main.cc b/main.cc
index 42501544..ab26d0d7 100644
--- a/main.cc
+++ b/main.cc
@@ -290,11 +290,8 @@ int parse_and_report(int argc, char * argv[], char * envp[])
command = "e";
else if (command == "equity")
command = "E";
- else {
- std::ostringstream msg;
- msg << "Unrecognized command '" << command << "'";
- throw error(msg.str());
- }
+ else
+ throw error(std::string("Unrecognized command '") + command + "'");
config.process_options(command, arg, args.end());