Missing root dir won't stop app

Fixed: Missing root dir won't prevent UI from loading
This commit is contained in:
Mark McDowall 2012-12-25 23:20:31 -08:00
commit cd98fbb4fa
5 changed files with 131 additions and 12 deletions

View file

@ -193,8 +193,8 @@ namespace NzbDrone.Common
public virtual ulong FreeDiskSpace(DirectoryInfo directoryInfo)
{
if (!directoryInfo.Exists)
throw new DirectoryNotFoundException();
if(!directoryInfo.Exists)
throw new DirectoryNotFoundException(directoryInfo.FullName);
ulong freeBytesAvailable;
ulong totalNumberOfBytes;