diff options
Diffstat (limited to 'src/option.h')
-rw-r--r-- | src/option.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/option.h b/src/option.h index b0d4e0f0..80be69c4 100644 --- a/src/option.h +++ b/src/option.h @@ -127,7 +127,7 @@ public: string str() const { assert(handled); if (value.empty()) - throw_(std::runtime_error, _("No argument provided for %1") << desc()); + throw_(std::runtime_error, _f("No argument provided for %1%") % desc()); return value; } @@ -168,18 +168,18 @@ public: value_t handler(call_scope_t& args) { if (wants_arg) { if (args.size() < 2) - throw_(std::runtime_error, _("No argument provided for %1") << desc()); + throw_(std::runtime_error, _f("No argument provided for %1%") % desc()); else if (args.size() > 2) - throw_(std::runtime_error, _("To many arguments provided for %1") << desc()); + throw_(std::runtime_error, _f("To many arguments provided for %1%") % desc()); else if (! args[0].is_string()) - throw_(std::runtime_error, _("Context argument for %1 not a string") << desc()); + throw_(std::runtime_error, _f("Context argument for %1% not a string") % desc()); on(args.get<string>(0), args.get<string>(1)); } else if (args.size() < 1) { - throw_(std::runtime_error, _("No argument provided for %1") << desc()); + throw_(std::runtime_error, _f("No argument provided for %1%") % desc()); } else if (! args[0].is_string()) { - throw_(std::runtime_error, _("Context argument for %1 not a string") << desc()); + throw_(std::runtime_error, _f("Context argument for %1% not a string") % desc()); } else { on(args.get<string>(0)); |