mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
Added try/catch block to main
This commit is contained in:
parent
d7a6cd4960
commit
c5b29d985b
@ -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;
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------------------
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user