Skip to content
Snippets Groups Projects
Commit a17b92cb authored by Stephen Smith's avatar Stephen Smith
Browse files

ooo - catching more exceptions (maybe) - inspired by CB's nose

parent 94ee0c08
No related branches found
No related tags found
No related merge requests found
...@@ -52,6 +52,11 @@ int main(int argc, char *argv[]) ...@@ -52,6 +52,11 @@ int main(int argc, char *argv[])
{ {
cerr << p_excp.what() << endl; cerr << p_excp.what() << endl;
} }
catch(...)
{
cerr << "Uncaught exception!" << endl;
}
return 0; return 0;
} }
...@@ -235,6 +235,10 @@ int main(int argc, char *argv[]) ...@@ -235,6 +235,10 @@ int main(int argc, char *argv[])
{ {
cerr << p_excp.what() << endl; cerr << p_excp.what() << endl;
} }
catch(...)
{
cerr << "Uncaught exception!" << endl;
}
return 0; return 0;
} }
......
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