summaryrefslogtreecommitdiff
path: root/src/report.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-05-14 21:36:42 -0600
committerJohn Wiegley <johnw@newartisans.com>2012-05-14 21:44:00 -0600
commitf4f3058b8cd75c04080f9b68cb54b9584eafb39f (patch)
treeeca9ca6ceca001209fb93c05b52e21031280d18c /src/report.cc
parent96172669053bbba7263a370f109f70615049a0c6 (diff)
downloadfork-ledger-f4f3058b8cd75c04080f9b68cb54b9584eafb39f.tar.gz
fork-ledger-f4f3058b8cd75c04080f9b68cb54b9584eafb39f.tar.bz2
fork-ledger-f4f3058b8cd75c04080f9b68cb54b9584eafb39f.zip
Switch to using Boost.Format
Diffstat (limited to 'src/report.cc')
-rw-r--r--src/report.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/report.cc b/src/report.cc
index c7559cf7..c80a2f0f 100644
--- a/src/report.cc
+++ b/src/report.cc
@@ -591,15 +591,15 @@ value_t report_t::fn_get_at(call_scope_t& args)
}
else if (! args[0].is_sequence()) {
throw_(std::runtime_error,
- _("Attempting to get argument at index %1 from %2")
- << index << args[0].label());
+ _f("Attempting to get argument at index %1% from %2%")
+ % index % args[0].label());
}
value_t::sequence_t& seq(args[0].as_sequence_lval());
if (index >= seq.size())
throw_(std::runtime_error,
- _("Attempting to get index %1 from %2 with %3 elements")
- << index << args[0].label() << seq.size());
+ _f("Attempting to get index %1% from %2% with %3% elements")
+ % index % args[0].label() % seq.size());
return seq[index];
}
@@ -852,8 +852,8 @@ value_t report_t::fn_nail_down(call_scope_t& args)
}
default:
- throw_(std::runtime_error, _("Attempting to nail down %1")
- << args[0].label());
+ throw_(std::runtime_error, _f("Attempting to nail down %1%")
+ % args[0].label());
}
return arg0;
}