summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Michlmayr <tbm@cyrius.com>2014-05-13 18:08:34 -0400
committerMartin Michlmayr <tbm@cyrius.com>2014-05-13 18:08:34 -0400
commit60d9c2bc1d8095f06c13fbf1bcce2d5c587a3a64 (patch)
treef75bf04c8e97cdfb5dc675e5478b4ea8113fd4b1 /src
parentc411792edbe359d5653a2ad5de6b5ea4a40227c2 (diff)
downloadfork-ledger-60d9c2bc1d8095f06c13fbf1bcce2d5c587a3a64.tar.gz
fork-ledger-60d9c2bc1d8095f06c13fbf1bcce2d5c587a3a64.tar.bz2
fork-ledger-60d9c2bc1d8095f06c13fbf1bcce2d5c587a3a64.zip
Remove trailing whitespace from error messages
Fix for bug #867
Diffstat (limited to 'src')
-rw-r--r--src/context.h4
-rw-r--r--src/convert.cc2
-rw-r--r--src/error.cc2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/context.h b/src/context.h
index 9f5bfe8f..27b733a1 100644
--- a/src/context.h
+++ b/src/context.h
@@ -101,10 +101,10 @@ public:
}
void warning(const string& what) const {
- warning_func(location() + what);
+ warning_func(location() + " " + what);
}
void warning(const boost::format& what) const {
- warning_func(location() + string(what.str()));
+ warning_func(location() + " " + string(what.str()));
}
};
diff --git a/src/convert.cc b/src/convert.cc
index 2fcec38e..816271f2 100644
--- a/src/convert.cc
+++ b/src/convert.cc
@@ -86,7 +86,7 @@ value_t convert_command(call_scope_t& args)
if (entry != journal.checksum_map.end()) {
INFO(file_context(reader.get_pathname(),
reader.get_linenum())
- << "Ignoring known UUID " << ref);
+ << " " << "Ignoring known UUID " << ref);
checked_delete(xact); // ignore it
continue;
}
diff --git a/src/error.cc b/src/error.cc
index 035c5f19..830dacb0 100644
--- a/src/error.cc
+++ b/src/error.cc
@@ -49,7 +49,7 @@ string error_context()
string file_context(const path& file, const std::size_t line)
{
std::ostringstream buf;
- buf << '"' << file.string() << "\", line " << line << ": ";
+ buf << '"' << file.string() << "\", line " << line << ":";
return buf.str();
}