summaryrefslogtreecommitdiff
path: root/src/xact.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/xact.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/xact.cc')
-rw-r--r--src/xact.cc9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/xact.cc b/src/xact.cc
index 226fd5ab..07ca7911 100644
--- a/src/xact.cc
+++ b/src/xact.cc
@@ -184,8 +184,8 @@ bool xact_base_t::finalize()
if (post_account_bad || null_post_account_bad)
throw_(std::logic_error,
- _("Posting with null amount's account may be mispelled:\n \"%1\"")
- << (post_account_bad ? post->account->fullname() :
+ _f("Posting with null amount's account may be mispelled:\n \"%1%\"")
+ % (post_account_bad ? post->account->fullname() :
null_post->account->fullname()));
else
throw_(std::logic_error,
@@ -706,10 +706,9 @@ void auto_xact_t::extend_xact(xact_base_t& xact, parse_context_t& context)
else if (! pair.first.calc(bound_scope).to_boolean()) {
if (pair.second == expr_t::EXPR_ASSERTION)
throw_(parse_error,
- _("Transaction assertion failed: %1") << pair.first);
+ _f("Transaction assertion failed: %1%") % pair.first);
else
- context.warning(STR(_("Transaction check failed: %1")
- << pair.first));
+ context.warning(_f("Transaction check failed: %1%") % pair.first);
}
}
}