Show name of mount points that fail in DiskProvider
This commit is contained in:
parent
14411f1f15
commit
2da5b4ed21
|
@ -182,10 +182,18 @@ namespace NzbDrone.Mono.Disk
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
mounts.AddRange(GetDriveInfoMounts()
|
mounts.AddRange(GetDriveInfoMounts()
|
||||||
.Select(d => new DriveInfoMount(d, FindDriveType.Find(d.DriveFormat)))
|
.Select(d =>
|
||||||
.Where(d => d.DriveType == DriveType.Fixed ||
|
{
|
||||||
d.DriveType == DriveType.Network ||
|
try
|
||||||
d.DriveType == DriveType.Removable));
|
{
|
||||||
|
return new DriveInfoMount(d, FindDriveType.Find(d.DriveFormat));
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
throw new Exception($"Failed to fetch drive info for mount point: {d.Name}", ex);
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.Where(d => d.DriveType is DriveType.Fixed or DriveType.Network or DriveType.Removable));
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue