|
|
@@ -96,15 +96,18 @@ int main(int argc, char* argv[]) { |
|
|
|
catch(exception& e) { // Report any normal exceptions.
|
|
|
|
cerr << "\n\nSNFMilterConfig Exception: " << e.what() << endl << endl;
|
|
|
|
RestoreFiles(&SnfMilterConfig);
|
|
|
|
return(-1);
|
|
|
|
}
|
|
|
|
catch (snfCFGmgr::LoadFailure) { // Error loading configuration file.
|
|
|
|
cerr << "\n\nsnfCFGmgr Exception: Unable to load the configuration file "
|
|
|
|
<< SnfMilterConfig.GetConfigFileName() << endl << endl;
|
|
|
|
RestoreFiles(&SnfMilterConfig);
|
|
|
|
return(-1);
|
|
|
|
}
|
|
|
|
catch(...) { // Report any unexpected exceptions.
|
|
|
|
cerr << "\n\nSNFMilterConfig Panic! Unknown Exception!" << endl << endl;
|
|
|
|
RestoreFiles(&SnfMilterConfig);
|
|
|
|
return(-1);
|
|
|
|
}
|
|
|
|
|
|
|
|
return 0; // Normally we return zero.
|