summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;