mirror of https://github.com/davisking/dlib.git
Simplified example programs slightly
This commit is contained in:
parent
d00864cf54
commit
8319811880
|
@ -237,10 +237,6 @@ int main(int argc, char** argv)
|
|||
// the default message.
|
||||
cout << e.what() << endl;
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
cout << "Some error occurred" << endl;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -289,10 +289,6 @@ int main()
|
|||
cout << "\nexception thrown!" << endl;
|
||||
cout << e.what() << endl;
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
cout << "Some error occurred" << endl;
|
||||
}
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------------------
|
||||
|
|
|
@ -251,10 +251,6 @@ int main()
|
|||
cout << "\nexception thrown!" << endl;
|
||||
cout << e.what() << endl;
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
cout << "Some error occurred" << endl;
|
||||
}
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------------------
|
||||
|
|
|
@ -61,9 +61,5 @@ int main()
|
|||
{
|
||||
cout << e.what() << endl;
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
cout << "Some error occurred" << endl;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -88,10 +88,6 @@ int main()
|
|||
{
|
||||
cout << e.what() << endl;
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
cout << "Some error occurred" << endl;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -296,12 +296,6 @@ int main(int argc, char** argv)
|
|||
cout << "\nTry the -h option for more information." << endl;
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
cout << "Some error occurred" << endl;
|
||||
cout << "\nTry the -h option for more information." << endl;
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue