mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 21:43:33 -07:00
Fixed: Log name of mount point failure
(cherry picked from commit b5050d02d6adbaaaa0f8ae9f8426551e5606fff1)
This commit is contained in:
parent
ea82c4f105
commit
a0c095e853
1 changed files with 12 additions and 4 deletions
|
@ -198,10 +198,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…
Add table
Add a link
Reference in a new issue