Moved the occurance of "Error:" when reporting context.
This commit is contained in:
parent
6fbf5c551e
commit
c2761f4e90
2 changed files with 4 additions and 4 deletions
|
|
@ -481,8 +481,8 @@ int main(int argc, char * argv[], char * envp[])
|
||||||
}
|
}
|
||||||
catch (const std::exception& err) {
|
catch (const std::exception& err) {
|
||||||
std::cout.flush();
|
std::cout.flush();
|
||||||
std::cerr << "Error: " << ledger::error_context() << err.what()
|
std::cerr << ledger::error_context()
|
||||||
<< std::endl;
|
<< "Error: " << err.what() << std::endl;
|
||||||
}
|
}
|
||||||
catch (int _status) {
|
catch (int _status) {
|
||||||
status = _status;
|
status = _status;
|
||||||
|
|
|
||||||
|
|
@ -1012,8 +1012,8 @@ unsigned int textual_parser_t::parse(std::istream& in,
|
||||||
add_error_context(file_context(pathname, linenum - 1));
|
add_error_context(file_context(pathname, linenum - 1));
|
||||||
|
|
||||||
std::cout.flush();
|
std::cout.flush();
|
||||||
std::cerr << "Error: " << error_context() << err.what()
|
std::cerr << ledger::error_context()
|
||||||
<< std::endl;
|
<< "Error: " << err.what() << std::endl;
|
||||||
errors++;
|
errors++;
|
||||||
}
|
}
|
||||||
beg_pos = end_pos;
|
beg_pos = end_pos;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue