From 842359474e36d8406305b874e82c12594dbc154c Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 8 Sep 2004 03:33:56 -0400 Subject: optimize python iterations of entries, transactions; use exceptions more --- main.cc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'main.cc') 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()); -- cgit v1.2.3