Skip to content
Snippets Groups Projects
Commit b6911eb7 authored by Jan Trávníček's avatar Jan Trávníček
Browse files

add exception handler for areverse

parent 6535c932
No related branches found
No related tags found
No related merge requests found
...@@ -42,7 +42,11 @@ int main(int argc, char** argv) { ...@@ -42,7 +42,11 @@ int main(int argc, char** argv) {
} catch(const TCLAP::ArgException& exception) { } catch(const TCLAP::ArgException& exception) {
std::cout << exception.error() << std::endl; std::cout << exception.error() << std::endl;
return 2; return 2;
} catch (const std::exception& exception) {
std::cerr << "Exception caught: " << exception.what() << std::endl;
return 3;
} catch(...) { } catch(...) {
std::cerr << "Unknown exception caught." << std::endl;
return 127; return 127;
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment