summaryrefslogtreecommitdiff
path: root/main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'main.cc')
-rw-r--r--main.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.cc b/main.cc
index c2b780b9..509676cb 100644
--- a/main.cc
+++ b/main.cc
@@ -8,6 +8,7 @@ using namespace ledger;
#include <sstream>
#include <memory>
#include <algorithm>
+#include <exception>
#include <iterator>
#include <string>
#include <cstdlib>
@@ -349,7 +350,7 @@ int main(int argc, char * argv[], char * envp[])
try {
return parse_and_report(argc, argv, envp);
}
- catch (error& err) {
+ catch (const std::exception& err) {
std::cerr << "Error: " << err.what() << std::endl;
return 1;
}