mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-09 04:22:30 +01:00
Fixed: Log error message when moving file to recycling bin fails
This commit is contained in:
parent
fa527d7820
commit
49dea2cd7f
@ -110,8 +110,17 @@ public void DeleteFile(string path)
|
||||
}
|
||||
}
|
||||
|
||||
try
|
||||
{
|
||||
_logger.Debug("Moving '{0}' to '{1}'", path, destination);
|
||||
_diskTransferService.TransferFile(path, destination, TransferMode.Move);
|
||||
}
|
||||
catch (IOException e)
|
||||
{
|
||||
var message = String.Format("Unable to move '{0}' to the recycling bin: '{1}'", path, destination);
|
||||
_logger.ErrorException(message, e);
|
||||
throw;
|
||||
}
|
||||
|
||||
//TODO: Better fix than this for non-Windows?
|
||||
if (OsInfo.IsWindows)
|
||||
|
Loading…
Reference in New Issue
Block a user