Commit c5b29d98 authored by Davis King's avatar Davis King

Added try/catch block to main

parent d7a6cd49
......@@ -78,7 +78,7 @@ std::vector<matrix<rgb_pixel>> jitter_image(
// ----------------------------------------------------------------------------------------
int main(int argc, char** argv)
int main(int argc, char** argv) try
{
if (argc != 2)
{
......@@ -194,6 +194,10 @@ int main(int argc, char** argv)
cout << "hit enter to terminate" << endl;
cin.get();
}
catch (std::exception& e)
{
cout << e.what() << endl;
}
// ----------------------------------------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment