summaryrefslogtreecommitdiff
path: root/src/main.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-03-01 05:50:07 -0600
committerJohn Wiegley <johnw@newartisans.com>2012-03-01 05:50:07 -0600
commit9ec9cdf41e5176f7fcf06da5f75593d9ba3d4028 (patch)
treef9536d691ef7c5abea82349a0b58a5f5e3cf8e33 /src/main.cc
parent944e580825f0d9ce060b6dcdffe8990b6c2cca20 (diff)
downloadfork-ledger-9ec9cdf41e5176f7fcf06da5f75593d9ba3d4028.tar.gz
fork-ledger-9ec9cdf41e5176f7fcf06da5f75593d9ba3d4028.tar.bz2
fork-ledger-9ec9cdf41e5176f7fcf06da5f75593d9ba3d4028.zip
Started writing Python unit tests
Diffstat (limited to 'src/main.cc')
-rw-r--r--src/main.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main.cc b/src/main.cc
index 2202a5de..aafbdbcb 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -191,9 +191,10 @@ int main(int argc, char * argv[], char * envp[])
std::cerr << "Exception during initialization: " << err.what()
<< std::endl;
}
- catch (int _status) {
- status = _status; // used for a "quick" exit, and is used only
- // if help text (such as --help) was displayed
+ catch (const error_count& errors) {
+ // used for a "quick" exit, and is used only if help text (such as
+ // --help) was displayed
+ status = static_cast<int>(errors.count);
}
// If memory verification is being performed (which can be very slow), clean