summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2011-03-03 23:47:11 -0500
committerJohn Wiegley <johnw@newartisans.com>2011-03-03 23:47:11 -0500
commitdc03c646eb65f50210e06c48d30f6b24f05c5f1c (patch)
treee224ac0e118abc0609c025219b6e926f6d8784ef /src
parent013aefd9fd9880e9c19aa69dd190f62a1a0f54f4 (diff)
downloadfork-ledger-dc03c646eb65f50210e06c48d30f6b24f05c5f1c.tar.gz
fork-ledger-dc03c646eb65f50210e06c48d30f6b24f05c5f1c.tar.bz2
fork-ledger-dc03c646eb65f50210e06c48d30f6b24f05c5f1c.zip
Corrections to the regression tests
Diffstat (limited to 'src')
-rw-r--r--src/error.cc2
-rw-r--r--src/textual.cc4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/error.cc b/src/error.cc
index 0b6f228d..c6309702 100644
--- a/src/error.cc
+++ b/src/error.cc
@@ -51,7 +51,7 @@ string error_context()
string file_context(const path& file, const std::size_t line)
{
std::ostringstream buf;
- buf << file << ", line " << line << ": ";
+ buf << '"' << file.string() << "\", line " << line << ": ";
return buf.str();
}
diff --git a/src/textual.cc b/src/textual.cc
index a1e5d50b..26de6f9e 100644
--- a/src/textual.cc
+++ b/src/textual.cc
@@ -1150,7 +1150,7 @@ 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 << linenum << post->account->fullname());
+ << pathname.string() << linenum << post->account->fullname());
post->account->add_flags(ACCOUNT_KNOWN);
}
@@ -1185,7 +1185,7 @@ post_t * instance_t::parse_post(char * line,
! post->amount.commodity().has_flags(COMMODITY_KNOWN)) {
if (post->_state == item_t::UNCLEARED)
warning_(_("\"%1\", line %2: Unknown commodity '%3'")
- << pathname << linenum << post->amount.commodity());
+ << pathname.string() << linenum << post->amount.commodity());
post->amount.commodity().add_flags(COMMODITY_KNOWN);
}