summaryrefslogtreecommitdiff
path: root/src/item.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/item.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/item.cc')
-rw-r--r--src/item.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/item.cc b/src/item.cc
index 17d46652..de5ffef2 100644
--- a/src/item.cc
+++ b/src/item.cc
@@ -270,16 +270,16 @@ namespace {
return item.has_tag(args.get<mask_t>(0));
else
throw_(std::runtime_error,
- _("Expected string or mask for argument 1, but received %1")
- << args[0].label());
+ _f("Expected string or mask for argument 1, but received %1%")
+ % args[0].label());
}
else if (args.size() == 2) {
if (args[0].is_mask() && args[1].is_mask())
return item.has_tag(args.get<mask_t>(0), args.get<mask_t>(1));
else
throw_(std::runtime_error,
- _("Expected masks for arguments 1 and 2, but received %1 and %2")
- << args[0].label() << args[1].label());
+ _f("Expected masks for arguments 1 and 2, but received %1% and %2%")
+ % args[0].label() % args[1].label());
}
else if (args.size() == 0) {
throw_(std::runtime_error, _("Too few arguments to function"));
@@ -302,16 +302,16 @@ namespace {
val = item.get_tag(args.get<mask_t>(0));
else
throw_(std::runtime_error,
- _("Expected string or mask for argument 1, but received %1")
- << args[0].label());
+ _f("Expected string or mask for argument 1, but received %1%")
+ % args[0].label());
}
else if (args.size() == 2) {
if (args[0].is_mask() && args[1].is_mask())
val = item.get_tag(args.get<mask_t>(0), args.get<mask_t>(1));
else
throw_(std::runtime_error,
- _("Expected masks for arguments 1 and 2, but received %1 and %2")
- << args[0].label() << args[1].label());
+ _f("Expected masks for arguments 1 and 2, but received %1% and %2%")
+ % args[0].label() % args[1].label());
}
else if (args.size() == 0) {
throw_(std::runtime_error, _("Too few arguments to function"));