diff options
author | lloyd <[email protected]> | 2009-07-12 12:40:01 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2009-07-12 12:40:01 +0000 |
commit | abbde94e4fafc6c326790831e1a3d2ff8024cc43 (patch) | |
tree | 867786f8e085fb16e7f9aa52595707f918ba1393 /checks/check.cpp | |
parent | 4ef3cf0ae31a2b167b8c9ca17e9a0d1f7eb5ac8e (diff) |
Return 1 to system if exception is caught in check prog
Diffstat (limited to 'checks/check.cpp')
-rw-r--r-- | checks/check.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/checks/check.cpp b/checks/check.cpp index 48c91504a..5956c7055 100644 --- a/checks/check.cpp +++ b/checks/check.cpp @@ -187,10 +187,12 @@ int main(int argc, char* argv[]) catch(std::exception& e) { std::cerr << "Exception: " << e.what() << std::endl; + return 1; } catch(...) { std::cerr << "Unknown (...) exception caught" << std::endl; + return 1; } return 0; |