summaryrefslogtreecommitdiff
path: root/src/main.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-02 00:24:26 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-02 00:24:26 -0400
commit9540406af15d522d15c94cc3d63c77b7da7e1423 (patch)
tree6dd912aac2adb018c16a8b506bc0e18eb8444caa /src/main.cc
parentef3943c60498ab0fd4de1f1735109b0d103c167a (diff)
downloadfork-ledger-9540406af15d522d15c94cc3d63c77b7da7e1423.tar.gz
fork-ledger-9540406af15d522d15c94cc3d63c77b7da7e1423.tar.bz2
fork-ledger-9540406af15d522d15c94cc3d63c77b7da7e1423.zip
Simplified error context handling.
Diffstat (limited to 'src/main.cc')
-rw-r--r--src/main.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cc b/src/main.cc
index b3dcd16f..583c82cd 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -133,7 +133,7 @@ int main(int argc, char * argv[], char * envp[])
}
catch (const std::exception& err) {
std::cout.flush();
- std::cerr << error_context() << "Error: " << err.what() << std::endl;
+ report_error(err);
}
catch (int _status) {
status = _status;