summaryrefslogtreecommitdiff
path: root/src/parameters_parser.hh
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2015-06-01 21:15:59 +0100
committerMaxime Coste <frrrwww@gmail.com>2015-06-01 21:15:59 +0100
commit8f6fc6a0f3bad813f6f7a6ca5cd8ae56afd31cc3 (patch)
treee7611265f4e905330910ebdc3d4f1c317b4d4f67 /src/parameters_parser.hh
parentf19bb4fe6d1de14f9539768ad9a67391fc52ed87 (diff)
Port even more code to use format function
Diffstat (limited to 'src/parameters_parser.hh')
-rw-r--r--src/parameters_parser.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parameters_parser.hh b/src/parameters_parser.hh
index 827eacf9..79f4f702 100644
--- a/src/parameters_parser.hh
+++ b/src/parameters_parser.hh
@@ -21,13 +21,13 @@ struct parameter_error : public runtime_error
struct unknown_option : public parameter_error
{
unknown_option(StringView name)
- : parameter_error("unknown option '" + name + "'") {}
+ : parameter_error(format("unknown option '{}'", name)) {}
};
struct missing_option_value: public parameter_error
{
missing_option_value(StringView name)
- : parameter_error("missing value for option '" + name + "'") {}
+ : parameter_error(format("missing value for option '{}'", name)) {}
};
struct wrong_argument_count : public parameter_error