summaryrefslogtreecommitdiff
path: root/src/error.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/error.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/error.cc')
-rw-r--r--src/error.cc6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/error.cc b/src/error.cc
index 8fc8fa53..68a2d844 100644
--- a/src/error.cc
+++ b/src/error.cc
@@ -75,10 +75,4 @@ string line_context(const string& line,
return buf.str();
}
-void report_error(const std::exception& err)
-{
- std::cerr << error_context() << std::endl
- << "Error: " << err.what() << std::endl;
-}
-
} // namespace ledger