summaryrefslogtreecommitdiff
path: root/src/textual.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-02-26 15:45:15 -0600
committerJohn Wiegley <johnw@newartisans.com>2012-02-26 15:45:15 -0600
commitaa9b07d79bff00506b913d1e56575c3859fc173f (patch)
tree70bf76b03217eec5d09855f2a7bda9d5b9230fa0 /src/textual.cc
parent4cf95497f9afaead3d9d308dabe8e8b26949502f (diff)
downloadfork-ledger-aa9b07d79bff00506b913d1e56575c3859fc173f.tar.gz
fork-ledger-aa9b07d79bff00506b913d1e56575c3859fc173f.tar.bz2
fork-ledger-aa9b07d79bff00506b913d1e56575c3859fc173f.zip
Added --rich-data for 'convert', and SHA1 checksum checking
Diffstat (limited to 'src/textual.cc')
-rw-r--r--src/textual.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/textual.cc b/src/textual.cc
index ddbd9943..13032236 100644
--- a/src/textual.cc
+++ b/src/textual.cc
@@ -1150,8 +1150,9 @@ post_t * instance_t::parse_post(char * line,
if (context.strict && ! post->account->has_flags(ACCOUNT_KNOWN)) {
if (post->_state == item_t::UNCLEARED)
- warning_(_("\"%1\", line %2: Unknown account '%3'")
- << pathname.string() << linenum << post->account->fullname());
+ warning_(_("%1Unknown account '%2'")
+ << file_context(pathname, linenum)
+ << post->account->fullname());
post->account->add_flags(ACCOUNT_KNOWN);
}
@@ -1181,8 +1182,9 @@ post_t * instance_t::parse_post(char * line,
if (context.strict &&
! post->amount.commodity().has_flags(COMMODITY_KNOWN)) {
if (post->_state == item_t::UNCLEARED)
- warning_(_("\"%1\", line %2: Unknown commodity '%3'")
- << pathname.string() << linenum << post->amount.commodity());
+ warning_(_("%1Unknown commodity '%2'")
+ << file_context(pathname, linenum)
+ << post->amount.commodity());
post->amount.commodity().add_flags(COMMODITY_KNOWN);
}