summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-01-22 21:17:11 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-01-22 21:17:16 -0400
commitc2761f4e90f9cba44b8281af0f4d90e58625f263 (patch)
tree342fc64951acf9f74bbd20041175660f0f8d372f
parent6fbf5c551e097acda6f0f08431d190bc4720b740 (diff)
downloadfork-ledger-c2761f4e90f9cba44b8281af0f4d90e58625f263.tar.gz
fork-ledger-c2761f4e90f9cba44b8281af0f4d90e58625f263.tar.bz2
fork-ledger-c2761f4e90f9cba44b8281af0f4d90e58625f263.zip
Moved the occurance of "Error:" when reporting context.
-rw-r--r--src/main.cc4
-rw-r--r--src/textual.cc4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/main.cc b/src/main.cc
index 2c55abf0..a3fa5c18 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -481,8 +481,8 @@ int main(int argc, char * argv[], char * envp[])
}
catch (const std::exception& err) {
std::cout.flush();
- std::cerr << "Error: " << ledger::error_context() << err.what()
- << std::endl;
+ std::cerr << ledger::error_context()
+ << "Error: " << err.what() << std::endl;
}
catch (int _status) {
status = _status;
diff --git a/src/textual.cc b/src/textual.cc
index 73e4ba9b..e1a08f69 100644
--- a/src/textual.cc
+++ b/src/textual.cc
@@ -1012,8 +1012,8 @@ unsigned int textual_parser_t::parse(std::istream& in,
add_error_context(file_context(pathname, linenum - 1));
std::cout.flush();
- std::cerr << "Error: " << error_context() << err.what()
- << std::endl;
+ std::cerr << ledger::error_context()
+ << "Error: " << err.what() << std::endl;
errors++;
}
beg_pos = end_pos;