added top level try catch block

This commit is contained in:
Jeff Hill
2004-08-12 17:58:04 +00:00
parent c23cb75b21
commit 9f216b07df

View File

@@ -69,9 +69,15 @@ extern int main ( int argc, const char **argv )
return (-1);
}
pCAS = new directoryServer(pvPrefix, aliasCount);
if (!pCAS) {
return (-1);
try {
pCAS = new directoryServer(pvPrefix, aliasCount);
if (!pCAS) {
return (-1);
}
}
catch ( ... ) {
errlogPrintf ( "Unable to create a directory service\n" );
exit ( -1 );
}
pCAS->setDebugLevel(debugLevel);