summaryrefslogtreecommitdiff
path: root/main.cc
diff options
context:
space:
mode:
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());