From f4f3058b8cd75c04080f9b68cb54b9584eafb39f Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 14 May 2012 21:36:42 -0600 Subject: Switch to using Boost.Format --- src/global.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/global.cc') diff --git a/src/global.cc b/src/global.cc index 6dc8d150..285fdea3 100644 --- a/src/global.cc +++ b/src/global.cc @@ -121,8 +121,8 @@ void global_scope_t::read_init() if (session().journal->read(parsing_context) > 0 || session().journal->auto_xacts.size() > 0 || session().journal->period_xacts.size() > 0) { - throw_(parse_error, _("Transactions found in initialization file '%1'") - << init_file); + throw_(parse_error, _f("Transactions found in initialization file '%1%'") + % init_file); } TRACE_FINISH(init, 1); @@ -203,7 +203,7 @@ void global_scope_t::execute_command(strings_list args, bool at_repl) report().normalize_options(verb); if (! bool(command = look_for_command(bound_scope, verb))) - throw_(std::logic_error, _("Unrecognized command '%1'") << verb); + throw_(std::logic_error, _f("Unrecognized command '%1%'") % verb); } // Create the output stream (it might be a file, the console or a PAGER -- cgit v1.2.3