summaryrefslogtreecommitdiff
path: root/src/main.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-02 15:16:18 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-02 15:16:18 -0400
commitcf9b4a38739426e4993fac49798ebe7dcfa11d62 (patch)
treedfd7e8afc40eaf6cf829026709771f5e32e62740 /src/main.cc
parentb18214372e42f84cd3c3b4ecfce8bb0295e6f9ca (diff)
downloadfork-ledger-cf9b4a38739426e4993fac49798ebe7dcfa11d62.tar.gz
fork-ledger-cf9b4a38739426e4993fac49798ebe7dcfa11d62.tar.bz2
fork-ledger-cf9b4a38739426e4993fac49798ebe7dcfa11d62.zip
Removed report_error() function and reordered context for parsing errors.
Diffstat (limited to 'src/main.cc')
-rw-r--r--src/main.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.cc b/src/main.cc
index 583c82cd..06bb2339 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -133,7 +133,8 @@ int main(int argc, char * argv[], char * envp[])
}
catch (const std::exception& err) {
std::cout.flush();
- report_error(err);
+ std::cerr << error_context() << std::endl
+ << "Error: " << err.what() << std::endl;
}
catch (int _status) {
status = _status;