Added try/catch block to main

This commit is contained in:
Davis King 2017-02-11 16:45:22 -05:00
parent d7a6cd4960
commit c5b29d985b

View File

@ -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;
}
// ----------------------------------------------------------------------------------------