mirror of
https://github.com/lidarr/Lidarr
synced 2025-02-07 06:52:35 +00:00
Fixed: Better handling for Remote NAS errors.
This commit is contained in:
parent
5d03c94b26
commit
9dd66879a2
1 changed files with 4 additions and 3 deletions
|
@ -1,4 +1,5 @@
|
|||
using System;
|
||||
using System.IO;
|
||||
using NLog;
|
||||
using NzbDrone.Common.Disk;
|
||||
using NzbDrone.Common.EnvironmentInfo;
|
||||
|
@ -39,15 +40,15 @@ public void SetFilePermissions(string path)
|
|||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
if (ex is UnauthorizedAccessException || ex is InvalidOperationException)
|
||||
if (ex is UnauthorizedAccessException || ex is InvalidOperationException || ex is FileNotFoundException)
|
||||
{
|
||||
_logger.Debug("Unable to apply folder permissions to: ", path);
|
||||
_logger.DebugException(ex.Message, ex);
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
throw;
|
||||
_logger.Warn("Unable to apply folder permissions to: ", path);
|
||||
_logger.WarnException(ex.Message, ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue