diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-02 15:16:18 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-02 15:16:18 -0400 |
commit | cf9b4a38739426e4993fac49798ebe7dcfa11d62 (patch) | |
tree | dfd7e8afc40eaf6cf829026709771f5e32e62740 /src/main.cc | |
parent | b18214372e42f84cd3c3b4ecfce8bb0295e6f9ca (diff) | |
download | fork-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.cc | 3 |
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; |