Added catch-all handler (#52)

master
Vladimir Stackov 2015-01-25 19:37:30 +03:00
parent 4298a0f111
commit 5217c64709
1 changed files with 5 additions and 0 deletions

View File

@ -679,5 +679,10 @@ invalid_option:
fprintf( stderr, "%s\n", e.what() );
return EXIT_FAILURE;
}
catch( ... )
{
fprintf( stderr, "Unknown exception!\n" );
return EXIT_FAILURE;
}
return EXIT_SUCCESS;
}