diff -r 55f2396f6d25 -r d6ef85bc5971 persistentstorage/centralrepository/cenrepsrv/install.cpp --- a/persistentstorage/centralrepository/cenrepsrv/install.cpp Mon May 03 14:09:14 2010 +0300 +++ b/persistentstorage/centralrepository/cenrepsrv/install.cpp Fri May 14 17:36:33 2010 +0300 @@ -434,11 +434,7 @@ void CCentRepSWIWatcher::ReadAndInternalizeInstallDirL(const TDesC& aInstallDirFilePath) { RFile file; - TInt e=file.Open(TServerResources::iFs,aInstallDirFilePath, EFileRead|EFileShareReadersOnly); - if(e == KErrNotFound || e == KErrPathNotFound) - { - User::Leave(KErrNotFound); - } + User::LeaveIfError(file.Open(TServerResources::iFs,aInstallDirFilePath, EFileRead|EFileShareReadersOnly)); CleanupClosePushL(file); CDirectFileStore* store = CDirectFileStore::FromLC (file);