aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Warta <[email protected]>2015-12-09 15:26:13 +0100
committerSimon Warta <[email protected]>2015-12-09 15:26:13 +0100
commit631fef26ead7e2da64aa4618bb16a716813b3e8c (patch)
tree002979f52de6e18d4dbd2e30228e0c3384793876
parent0f1d389a21e5a119ff72d927a1999976c2c9af24 (diff)
parent3e906f11633851dce815bfa57d8effbed1fad484 (diff)
Merge pull request #347 from webmaster128/getopt
Improve getopt error message
-rw-r--r--src/cmd/getopt.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/getopt.h b/src/cmd/getopt.h
index 435e74cbc..f683159d0 100644
--- a/src/cmd/getopt.h
+++ b/src/cmd/getopt.h
@@ -28,7 +28,7 @@ class OptionParser
{
std::map<std::string, std::string>::const_iterator i = options.find(key);
if(i == options.end())
- throw std::runtime_error("Option " + key + " not found");
+ throw std::runtime_error("Option '" + key + "' not set");
return i->second;
}